closeOverlay<T> function

Future<void> closeOverlay<T>(
  1. BuildContext context, [
  2. T? value
])

Implementation

Future<void> closeOverlay<T>(BuildContext context, [T? value]) {
  return Data.maybeFind<OverlayHandlerStateMixin>(context)
          ?.closeWithResult(value) ??
      Future.value();
}