flutter_sub library
Idiomatic State Lifecycles for Flutter. Part of the State, part of the Tree.
Classes
- SubAnimationController
- Creates an AnimationController and automatically disposes it when necessary.
-
SubAnimator<
T> - Subscribes to an Animation and returns its value.
-
SubCallback<
T extends Function> - Cache a function across rebuilds based on a list of keys.
-
SubDisposableListenable<
T extends ChangeNotifier> - A SubValue which holds a Value that is a descendant of ChangeNotifier. The dispose method is automatically handled.
- SubFocusNode
- Creates and disposes a FocusNode.
- SubFocusScopeNode
- Creates and disposes a FocusScopeNode.
-
SubFuture<
T> - Creates and subscribes to a Future, then exposes its current state as an AsyncSnapshot.
- SubListener
- Subscribes to a Listenable.
-
SubMemo<
T> - Caches the instance of a complex object.
- SubPageController
- Creates and disposes a PageController.
- SubPlatformBrightness
- Returns the current platform Brightness value and rebuilds the widget when it changes.
- SubScrollController
- Creates and disposes a ScrollController.
- SubSingleTickProvider
- Creates a single usage TickerProvider.
-
SubState<
T> - Creates a variable and subscribes to it.
-
SubStream<
T> - Creates and subscribes to a Stream, then exposes its current state as an AsyncSnapshot.
-
SubStreamController<
T> - Creates and disposes a StreamController.
- SubTabController
- Creates and disposes a TabController.
- SubTextEditingController
- Creates and disposes a TextEditingController.
- SubTransformationController
- Creates and disposes a TransformationController.
-
SubValue<
T> - Creates, recreates, updates and disposes a Value T.
-
SubValueListener<
T> - Subscribes to a ValueListenable and returns its value.
-
SubValueNotifier<
T> - Creates and subscribes to a ValueNotifier, then exposes its current state. The notifier is automatically disposed.
Mixins
-
SubSingleTickProviderMixin<
T> - A mixin that ensures that the State of a SubValue has a TickerProvider.