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