pushAndRemoveAll<T> static method

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

Push and remove all with the default platform-aware transition.

Implementation

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