internal Func <MouseEventArgs, Task> GetOnCancel() { if (OnCancel != null) { return(OnCancel); } return(async(e) => { await(ModalRef?.CloseAsync() ?? Task.CompletedTask); }); }
internal async Task DefaultOnCancelOrOk(MouseEventArgs e) { await(ModalRef?.CloseAsync() ?? Task.CompletedTask); }