SnappingScrollNotificationHandler constructor

SnappingScrollNotificationHandler({
  1. required double expandedBarHeight,
  2. required double collapsedBarHeight,
  3. double bottomBarHeight = 0.0,
  4. bool shouldAddHapticFeedback = false,
})

Implementation

SnappingScrollNotificationHandler({
  required this.expandedBarHeight,
  required this.collapsedBarHeight,
  this.bottomBarHeight = 0.0,
  this.shouldAddHapticFeedback = false,
})  : assert(
        expandedBarHeight > 0.0,
        'Expanded Bar Height cannot be negative',
      ),
      assert(
        collapsedBarHeight > 0.0,
        'Collapsed bar height cannot have a negative value',
      ),
      assert(
        collapsedBarHeight < expandedBarHeight,
        'Expanded bar height value must have a higher value than the collapsed bar height value',
      );