pushNamed abstract method

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

Push a named route onto the navigator that most tightly encloses the given context.

Implementation

void pushNamed(
  BuildContext context,
  String routeName, {
  Object? arguments,
});