Onboarding constructor

const Onboarding({
  1. Key? key,
  2. BuiltHeader? buildHeader,
  3. required List<Widget> swipeableBody,
  4. BuildFooter? buildFooter,
  5. OnPageChanges? onPageChanges,
  6. int startIndex = 0,
  7. int animationInMilliseconds = 300,
})

Implementation

const Onboarding({
  Key? key,
  this.buildHeader,
  required this.swipeableBody,
  this.buildFooter,
  this.onPageChanges,
  this.startIndex = 0,
  this.animationInMilliseconds = 300,
})  : assert(startIndex < swipeableBody.length),
      assert(startIndex >= 0),
      super(key: key);