LeapingPageIndicator constructor

LeapingPageIndicator({
  1. Key? key,
  2. PageIndicatorController? controller,
  3. ValueNotifier<double>? page,
  4. int? pageCount,
  5. double? leapHeight,
  6. LeapingStyle style = LeapingStyle.normal,
  7. IndicatorShape? shape,
  8. IndicatorShape? activeShape,
  9. Color activeColor = Colors.black,
  10. Color inactiveColor = Colors.grey,
  11. double gap = 12.0,
  12. double padding = 8.0,
})

Creates an InkPageIndicator that jumps between the invidividual dots.

Implementation

LeapingPageIndicator({
  Key? key,
  PageIndicatorController? controller,
  ValueNotifier<double>? page,
  int? pageCount,
  double? leapHeight,
  this.style = LeapingStyle.normal,
  IndicatorShape? shape,
  IndicatorShape? activeShape,
  Color activeColor = Colors.black,
  Color inactiveColor = Colors.grey,
  double gap = 12.0,
  double padding = 8.0,
})  : radii = leapHeight ?? gap,
      assert(gap >= 0.0),
      super(
        key: key,
        shape: shape,
        page: page,
        pageCount: pageCount,
        activeShape: activeShape,
        controller: controller,
        activeColor: activeColor,
        inactiveColor: inactiveColor,
        gap: gap,
        padding: padding,
      );