closeDialog<T> method
Close the currently open dialog, returning a result
, if provided
Implementation
void closeDialog<T>({String? id, T? result}) {
// Stop if there is no dialog open
if (isDialogOpen == null || !isDialogOpen!) return;
closeOverlay(id: id, result: result);
}