public Task <ModalResult> ShowAsync <TModal>(ModalOptions options) where TModal : IComponent
 {
     this.Options    = options ??= this.Options;
     this._ModalTask = new TaskCompletionSource <ModalResult>();
     this._Content   = new RenderFragment(builder =>
     {
         builder.OpenComponent(1, typeof(TModal));
         builder.CloseComponent();
     });
     this.Display = true;
     InvokeAsync(StateHasChanged);
     return(this._ModalTask.Task);
 }
 /// <summary>
 /// Method to update the state of the display based on UIOptions
 /// </summary>
 /// <param name="options"></param>
 public void Update(ModalOptions options = null)
 {
     this.Options = options ??= this.Options;
     InvokeAsync(StateHasChanged);
 }