I'm trying to learn Riverpod and I have a ChangeNotifierProvider that has a few fields that need to be initialized with a value that is returned from an async operation. Is this possible, as I know I cant create the ChangeNotifierProvider asynchronously?
Example ChangeNotifierProvider
class SomeState extends ChangeNotifier {
String email = '';
// needs to be set to value returned from
// shared preferences upon init
}
If not possible, is there another provider that could work better knowing I want to initialize its value to the returned value from async method?