DraggableScrollableNotification constructor

DraggableScrollableNotification({
  1. required double extent,
  2. required double minExtent,
  3. required double maxExtent,
  4. required double initialExtent,
  5. required BuildContext context,
  6. bool shouldCloseOnMinExtent = true,
})

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,
  this.shouldCloseOnMinExtent = true,
}) : assert(0.0 <= minExtent),
     assert(maxExtent <= 1.0),
     assert(minExtent <= extent),
     assert(minExtent <= initialExtent),
     assert(extent <= maxExtent),
     assert(initialExtent <= maxExtent);