closeOverlay<T> method

void closeOverlay<T>({
  1. String? id,
  2. T? result,
})

Close the current overlay returning the result, if provided

Implementation

void closeOverlay<T>({
  String? id,
  T? result,
}) {
  searchDelegate(id).navigatorKey.currentState?.pop(result);
}