Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Flutter have Data Binding?

Tags:

flutter

dart

Is there data binding in Flutter?

I have checked the official documentation about the field changes but I couldn't find anyting.

like image 850
Muhammed Ozdogan Avatar asked Oct 01 '18 12:10

Muhammed Ozdogan


1 Answers

No.

Instead Flutter has a widget binding, namely InheritedWidget. It binds two or more widgets together (one provider and some consumers) so that whenever one updates, all of its dependencies are forced to update too.

See Flutter: How to correctly use an Inherited Widget? for more details on how to use InheritedWidgets.

like image 51
Rémi Rousselet Avatar answered Sep 21 '22 23:09

Rémi Rousselet