Is it maybe because ValueNotifier is a generic, so it becomes nullable if its T is nullable (which it is in your case). Its not surprising that ! makes it work as doing that you are force casting it to be non null.
Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape.