value_extensions library

Mixins

ImportValueExtensions
Convenience mixin used to automatically export the package.

Extensions

ListChangeNotifierDisposeAllExtension on List<ChangeNotifier>
Invokes the dispose method on every ChangeNotifier in the reverse order of the list.
StreamExtractValueExtension on Stream<A>
Creates a new StreamValueListenable that echoes the stream, converting it to ValueListenable.
ValueListenableBindExtension on ValueListenable<A>
Binds this ValueListenable variable to the given Widget.
ValueListenableBindParallelExtension on ValueListenable<Pair<A, B>>
Works the same as the ValueListenableBindExtension, but destructures its arguments in the builder function.
ValueListenableCombineLatestExtension on ValueListenable<A>
Creates a new ValueListenable from the given two, using the given transform function, updating its value every time any of the two base notifiers change.
ValueListenableFlatMapExtension on ValueListenable<A>
Creates a new ValueListenable from the base notifier, using transform function.
ValueListenableMapExtension on ValueListenable<A>
Creates a new ValueListenable using the transform function, recomputing its value every time the base Listenable changes, applying the transform function to the new value.
ValueListenableParallelExtension on ValueListenable<A>
Allows to avoid nesting by paralleling two ValueListenables. This is a wrapper over the combineLatest extensions.
ValueListenableSubscribeExtensions on ValueListenable<A>
Works as ValueListenable.addListener, but returns a cancelable Subscription object that can be paused, canceled and resumed.
ValueListenableWhereExtension on ValueListenable<A>
Creates a new ValueListenable that filters base ValueListenable's values using the give predicate.
ValueNotifierSettersExtension on ValueNotifier<A>
Pair of setters used to reduce verbosity and improve ease of use.

Typedefs

BinaryFunction<A, B, C> = C Function(A first, B second)
A function that takes two arguments.
BinaryWidgetBuilder<A, B> = BinaryFunction<A, B, Widget>
A binary function that returns Widget.
Endomorphic<A> = UnaryFunction<A, A>
A unary function that takes and returns the same type. Used by the ValueNotifierSettersExtension extension.
FlatMapTransform<A, B> = UnaryFunction<A, ValueListenable<B>>
A unary function that returns a ValueListenable. Used by the ValueListenableFlatMapExtension.
Predicate<A> = UnaryFunction<A, bool>
A unary function that returns a bool.
UnaryFunction<A, B> = B Function(A value)
A function that takes a single argument.
UnaryVoidCallback<A> = UnaryFunction<A, void>
A unary function that returns void.
UnaryWidgetBuilder<A> = UnaryFunction<A, Widget>
A unary function that returns Widget.