pushFirst<T> method

  1. @override
Future<T?> pushFirst<T>(
  1. BuildContext context
)
override

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!));
}