One of the main reasons to prefer Provider over Statefulwidget s is that, using Provider , you will rebuild only the widgets that needs that value (the Consumers ) while the other will not be rebuilt . Instead when you call setState the whole build function of the widget will be called.
Read moreWhat is a MultiProvider Flutter?
MultiProvider class Null safety A provider that merges multiple providers into a single linear widget tree . It is used to improve readability and reduce boilerplate code of having to nest multiple layers of providers.
Read more