push method

void push(
  1. String route
)

Pushes a named route onto the stack.

Example: push('/home')

Implementation

void push(String route) {
  if(_ctx.mounted) GoRouter.of(_ctx).push(route);
}