FlexibleDraggableSheetExtent constructor Null safety

FlexibleDraggableSheetExtent(
  1. {required double minExtent,
  2. required double maxExtent,
  3. required double initialExtent,
  4. required VoidCallback listener}
)

Implementation

FlexibleDraggableSheetExtent({
  required this.minExtent,
  required this.maxExtent,
  required this.initialExtent,
  required VoidCallback listener,
})  : assert(minExtent >= 0),
      assert(maxExtent <= 1),
      assert(minExtent <= initialExtent),
      assert(initialExtent <= maxExtent),
      _currentExtent = ValueNotifier<double>(initialExtent)
        ..addListener(listener),
      availablePixels = double.infinity;