pushFirst<T> method
Push the first page in the array
This is called in the page before the first page included in the navigation array.
Implementation
@override
Future<T?> pushFirst<T>(BuildContext context) {
assert(
_isStackLoaded,
"the initializeRoutes() method should be called first before this can "
"be used.");
final firstPage = _pageDataMap.values.first;
_widget = firstPage.widget;
return _navigationLogicProvider
.next(NextArguments(context: context, nextPage: _widget!));
}