getChildAtIndex method
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];
}
@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];
}