clearStackAndShow<T> method
Clears the entire back stack and shows routeName
id
is for when you are using nested navigation, as explained in documentation.
Implementation
Future<T?>? clearStackAndShow<T>(
String routeName, {
dynamic arguments,
int? id,
Map<String, String>? parameters,
}) {
return G.Get.offAllNamed<T?>(
routeName,
arguments: arguments,
id: id,
parameters: parameters,
);
}