flutter_gadgets_2 library

Classes

AppGadget
A Gadget used as the root for a Flutter Gadgets application.
ControllerGadget
A Gadget that represents a controller associated to a ViewGadget.
ObservableModel
A Gadget used to store the global state of the application.
Service<T>
A simple utility class that encapsulates a Create and a Dispose function and generates a Provider in order to make the object created with the Create function available in the widget tree.
SubscriberGadget<T>
A Gadget used to observe a specified value from the ObservableModel.
ViewGadget<T extends ControllerGadget>
A Gadget used to create a portion of the UI while having access to a ControllerGadget.
ViewModelGadget<T>
A Gadget that encapsulates and handles the state of a view model.

Extensions

ReadContext
Exposes the read method.

Typedefs

BuildContextGetter = BuildContext Function()
A function used to obtain the BuildContext of the associated ViewGadget.
ViewMountedGetter = bool Function()
A function used to check whether the associated ViewGadget state is mounted or not.