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.
SubAppLifecycleState
Returns the current AppLifecycleState value and rebuilds the widget when it changes.
SubDefault<T>
Creates a default value if the value passed in is null.
SubDisposableListenable<T extends ChangeNotifier>
A SubValue which holds a Value that is a descendant of ChangeNotifier. The dispose method is automatically handled.
SubEffect
Useful for side-effects and optionally canceling them.
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.
SubMemoized<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.
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.
SubSubscriber<T>
Subscribes to a Stream.
SubTabController
Creates and disposes a TabController.
SubTextEditingController
Creates and disposes a TextEditingController.
SubTickerProvider
Creates a TickerProvider.
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

SubTickerProviderMixin<T>
A mixin that ensures that the State of a SubValue has a TickerProvider.