maybePop<T> method

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

Forwards execution to Navigator.maybePop.

Implementation

Future<bool> maybePop<T>([T? result]) async =>
    await state?.maybePop(result) ?? false;