pushAndRemoveAll<T> static method
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,
);