getChildAtIndex method

  1. @override
Widget getChildAtIndex(
  1. BuildContext context,
  2. int index
)
override

Implementation

@override
Widget getChildAtIndex(BuildContext context, int index) {
  if (index < 0 || index > pages.length - 1) {
    return ErrorWidget("index not in limit, index = $index");
  }
  return pages[index];
}