pushNamed method

void pushNamed(
  1. String routeName, {
  2. Object? arguments,
})

Push a named route onto the navigator - matches Flutter's Navigator.pushNamed

Implementation

void pushNamed(String routeName, {Object? arguments}) {
  if (_delegate != null) {
    _delegate!.pushNamed(_context!, routeName, arguments: arguments);
    return;
  }
  Navigator.pushNamed(_context!, routeName, arguments: arguments);
}