skip to Main Content

Riverpod stateNotifierProvider state is null – Flutter

Even after setting the state of Riverpod stateNotifierProvider, the state is null when used in the widget. I have this provider final imageNotifierProvider = StateNotifierProvider.autoDispose<ImageNotifier, FilePickerResult?>( (ref) => ImageNotifier()); class ImageNotifier extends StateNotifier<FilePickerResult?> { ImageNotifier() : super(null); void addImage(FilePickerResult result)…

VIEW QUESTION
Back To Top
Search