closeBottomSheet<T> method
Implementation
void closeBottomSheet<T>({String? id, T? result}) {
final topRoute = _topRoute(id: id);
// Stop if there is no bottomsheet open
if (!_isBottomSheetRoute(topRoute)) return;
_popOverlayRoute(topRoute!, id: id, result: result);
}