maybeBack<T> static method

Future<bool> maybeBack<T>([
  1. T? result
])

Goes back if the page allows it (respects PopScope); true when it did.

Implementation

static Future<bool> maybeBack<T>([T? result]) => Navigator.of(context).maybePop<T>(result);