README and context.read Dartdocs state the following:
It's worth noting that context.read() won't make a widget rebuild when the value changes and it cannot be called inside StatelessWidget.build/State.build. On the other hand, it can be freely called outside of these methods.
I bolded out the part I don't like. This is not true. Is it about good practices? It should be pointed out as such then, not that it cannot be called, because it can
README and
context.read
Dartdocs state the following:I bolded out the part I don't like. This is not true. Is it about good practices? It should be pointed out as such then, not that it cannot be called, because it can