DraggableScrollableNotification constructor Null safety

DraggableScrollableNotification(
  1. {required double extent,
  2. required double minExtent,
  3. required double maxExtent,
  4. required double initialExtent,
  5. 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);