AsyncValue.guard()
vs try
/catch
¶
Riverpod tip. 👇
You can replace tedious try
/catch
blocks with AsyncValue.guard()
inside your StateNotifier
subclasses.
Previous | Next |
---|---|
How to write a reactive in-memory store with RxDart | The Map.update() method |
Last update:
18 septembre 2023
Created: 18 septembre 2023
Created: 18 septembre 2023