تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح 96- Flutter State Management - Provider - watch extension method & Provider.of(context)(Arabic) ضمن كورس Flutter شرح قناة Code2Start - Mohamed Fathy Taha، الفديو رقم 96 مجانى معتمد اونلاين
Obtain a value from the nearest ancestor provider of type T, and subscribe to the provider.
Calling this method is equivalent to calling:
Provider.of(context)
This method is accessible only inside StatelessWidget.build and State.build.
If you need need to use it outside of these methods, consider using Provider.of instead, which doesn't have this restriction.
The only exception to this rule is Providers's update method.
source code
https://github.com/code2start/Flutter-State-Management/tree/lesson19-provider-lesson6