pop<T extends Object?> static method

Future pop<T extends Object?>(
  1. BuildContext context, [
  2. T? result
])

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);
}