Closed subzero911 closed 9 months ago
IIRC it is because late final
fields are lazy. If you never read them, then they will never be initialized.
That's crazy.
It's a dart feature IMHO
So if I initialize a late variable at declaration, it's considered to be a lazy initialization. But if I do it in the class constructor, it's considered as an assignment, and won't be lazy. If I understand correctly
If you initialize a late reaction right in the Store, it will never fire:
But if you just declare it in the Store body and initialize in the constructor, it will do. Magic?