Replies: 1 comment 1 reply
-
I reduced the boilerplate, but the issue persists class ImageGen {
List<({Uint8List bytes, String mimeType})> images = [];
String prompt = '';
String responseText = '';
}
@riverpod
class ImageGenNotifier extends _$ImageGenNotifier {
@override
ImageGen build() {
return ImageGen();
}
void setImages(List<({Uint8List bytes, String mimeType})> images) =>
state.images = images;
void setPrompt(String prompt) => state.prompt = prompt;
void setResponse(String responseText) => state.responseText = responseText;
} How do I trigger a rebuild here? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a class and associated notifier.
I have a widget that is based on this notifer. However when I set the image, the widget does not rebuild.
Upon Hot Reload, the I get null check error on the description property of the class.
What might be causing this?
Beta Was this translation helpful? Give feedback.
All reactions