ScrollSwitchWidget constructor

const ScrollSwitchWidget({
  1. Key? key,
  2. Widget? unfoldChild,
  3. required Widget child,
  4. required ValueNotifier<double> scrollableNotifier,
  5. required double maxOfExtent,
  6. required double minOfExtent,
})

Implementation

const ScrollSwitchWidget({
  Key? key,
  this.unfoldChild,
  required this.child,
  required this.scrollableNotifier,
  required this.maxOfExtent,
  required this.minOfExtent,
})   : this.heightRatio = 1 - (minOfExtent / maxOfExtent),
      super(key: key);