Student Reviews
( 5 Of 5 )
1 review
Video of 95-Flutter State Management-Provider-read extension method & Provider.of(context,listen false)(Arab) in Flutter course by Code2Start - Mohamed Fathy Taha channel, video No. 95 free certified online
In this lecture I'ill talk about how to use provider read extension method.
Obtain a value from the nearest ancestor provider of type T.
This method is the opposite of watch.
It will not make widget rebuild when the value changes and cannot be called inside StatelessWidget.build/State.build.
On the other hand, it can be freely called outside of these methods.
If that is incompatible with your criteria, consider using Provider.of(context, listen: false).
source code
https://github.com/code2start/Flutter-State-Management/tree/lesson18-provider-lesson5