SoloSelect<S> extension

select on every ValueListenable.

Exported from package:flutter_solo/listenable.dart and not from the package itself: it sits on a type of the framework, where a select of another package sits too, and two extensions with the same member name on the same type make every call of it ambiguous. Import the one you want the method from; without it the selection is still built directly, SoloSelection(controller, (state) => state.canSave).

An extension and not a member of SoloListenable for a second reason: a controller of a domain mixes it in, and select is a name such a controller may well want for itself — a list controller with select(id), say. A member of the mixin would collide with it and stop the controller from compiling; an extension steps aside, and the controller's own select wins.

on

Methods

select<T>(T selector(S value), {bool changed(T previous, T current)?}) → SoloSelection<S, T>

Available on ValueListenable<S>, provided by the SoloSelect extension

A SoloSelection of selector over this listenable.