DraggableScrollableNotification constructor Null safety
- {required double extent,
- required double minExtent,
- required double maxExtent,
- required double initialExtent,
- required BuildContext context}
Creates a notification that the extent of a DraggableScrollableSheet has changed.
All parameters are required. The minExtent must be >= 0. The maxExtent must be <= 1.0. The extent must be between minExtent and maxExtent.
Implementation
DraggableScrollableNotification({
required this.extent,
required this.minExtent,
required this.maxExtent,
required this.initialExtent,
required this.context,
}) : assert(extent != null),
assert(initialExtent != null),
assert(minExtent != null),
assert(maxExtent != null),
assert(0.0 <= minExtent),
assert(maxExtent <= 1.0),
assert(minExtent <= extent),
assert(minExtent <= initialExtent),
assert(extent <= maxExtent),
assert(initialExtent <= maxExtent),
assert(context != null);