PageFlipWidget constructor

PageFlipWidget({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 450),
  3. double cutoffForward = 0.8,
  4. double cutoffPrevious = 0.1,
  5. Color backgroundColor = Colors.white,
  6. required List<Widget> children,
  7. int initialIndex = 0,
  8. Widget? lastPage,
  9. bool isRightSwipe = false,
  10. required dynamic onPageFlip(
    1. int
    ),
})

Implementation

PageFlipWidget(
    {Key? key,
    this.duration = const Duration(milliseconds: 450),
    this.cutoffForward = 0.8,
    this.cutoffPrevious = 0.1,
    this.backgroundColor = Colors.white,
    required this.children,
    this.initialIndex = 0,
    this.lastPage,
    this.isRightSwipe = false,
    required this.onPageFlip})
    : assert(initialIndex < children.length,
          'initialIndex cannot be greater than children length'),
      super(key: key);