push<T> static method

Future<T?> push<T>(
  1. BuildContext context,
  2. String routeName, {
  3. Object? arguments,
})

Push with the default platform-aware transition (fade / cupertino).

Implementation

static Future<T?> push<T>(
  BuildContext context,
  String routeName, {
  Object? arguments,
}) => pushNamed<T>(
  context,
  routeName,
  arguments: arguments,
  transitionType: _defaultTransition,
);