controller_builder library

Classes

ControllerBuilder<T extends ChangeNotifier>
Creates a widget that initializes a "controller" (which extends ChangeNotifier) and provides the controller to it's children. This widget is used to abstract the initialization and disposing of the given controller.

Typedefs

ControllerCreateCallback<T extends ChangeNotifier> = T Function()
Callback for creating a ChangeNotifier
ControllerDisposeCallback<T extends ChangeNotifier> = void Function(T)?
An optional callback for providing a ChangeNotifier so it's resources can be disposed and cleaned up.
ControllerWidgetBuilder<T extends ChangeNotifier> = Widget Function(BuildContext, T)
Callback providing a ChangeNotifier in a builder