closePopover<T> function

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

Implementation

Future<void> closePopover<T>(BuildContext context, [T? value]) {
  return Data.maybeOf<PopoverAnchorState>(context)
          ?.widget
          .onCloseWithResult
          ?.call(value) ??
      Future.value();
}