EccoExtension extension
Extension on BuildContext that provides convenient access to Ecco notifiers.
This extension allows for easy retrieval of ViewModel instances from the widget tree without explicitly specifying the associated Model type.
- on
Methods
-
ecco<
VM extends EccoNotifier> () → VM -
Available on BuildContext, provided by the EccoExtension extension
Retrieves the nearest EccoNotifier of typeVM
from the widget tree.