PageFlipWidget constructor

const 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,
})

Implementation

const 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,
})  : assert(initialIndex < children.length,
          'initialIndex cannot be greater than children length'),
      super(key: key);