push<T extends Object?> method

Future<T?> push<T extends Object?>(
  1. BuildContext context, {
  2. required Data data,
})

Push this route onto the stack using the supplied data.

Implementation

Future<T?> push<T extends Object?>(
  BuildContext context, {
  required Data data,
}) {
  return GoRouter.of(context).push(fullPath(data), extra: data.extra);
}