Back to Browse

97- Flutter State Management - Provider - select extension method(Arabic)

6.7K views
Jul 24, 2020
17:14

In this lecture I'ill talk about provider select extension method. Watch a value of type T exposed from a provider, and listen only partially to changes. select must be used only inside the build method of a widget. It will not work inside other life-cycles, including State.didChangeDependencies. By using select, instead of watching the entire object, the listener will rebuild only if the value returned by selector changes. When a provider emits an update, it will call synchronously all selector. Then, if they return a value different from the previously returned value, the dependent will be marked as needing to rebuild. source code https://github.com/code2start/Flutter-State-Management/tree/lesson20-provider-lesson7

Download

1 formats

Video Formats

360pmp424.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

97- Flutter State Management - Provider - select extension method(Arabic) | NatokHD