pop<T extends Object?> static method
Pops the top-most route off the navigator.
An optional result can be returned to the previous route.
context: The build context from which to pop.
result: An optional value to return to the calling route.
Implementation
static Future pop<T extends Object?>(
BuildContext context, [
T? result,
]) async {
return Navigator.pop(context, result);
}