private async void CardsState_StateChanged(object sender, CardsState e) { if (LocalStorage != null) { await LocalStorage.SetItemAsync("cards", e.Cards) .ConfigureAwait(false); } }
public static CardsState ReduceAddCardAction(CardsState state, AddCardAction action) => state with