protected async override Task OnInitializedAsync() { DatoSimple = await LocalStorage.GetValue <string>(ValuesKeys.DatoSimple); Persona = IsDataNull.CreateInstanceIfIsNull <Persona>(await LocalStorage.GetValue <Persona>(ValuesKeys.Persona)); }
public async Task <T> GetValue <T>(ValuesKeys key) { string data = await JSRuntime.InvokeAsync <string>($"{tipoDeAlmacenamiento}getItem", key.ToString()).ConfigureAwait(false); return(IsDataNull.Check <T>(data)); }