DraggableScrollableSheet constructor Null safety
Creates a widget that can be dragged and scrolled in a single gesture.
The builder, initialChildSize, minChildSize, maxChildSize and expand parameters must not be null.
Implementation
const DraggableScrollableSheet({
super.key,
this.initialChildSize = 0.5,
this.minChildSize = 0.25,
this.maxChildSize = 1.0,
this.expand = true,
this.snap = false,
this.snapSizes,
this.snapAnimationDuration,
this.controller,
required this.builder,
}) : assert(initialChildSize != null),
assert(minChildSize != null),
assert(maxChildSize != null),
assert(minChildSize >= 0.0),
assert(maxChildSize <= 1.0),
assert(minChildSize <= initialChildSize),
assert(initialChildSize <= maxChildSize),
assert(snapAnimationDuration == null || snapAnimationDuration > Duration.zero),
assert(expand != null),
assert(builder != null);