StatesX<T> extension
StatesX
is an extension on States
that
adds common used operators like map
, cast
, etc.
- on
-
- States<
T>
- States<
Properties
- first → T
-
Get the first item of states.
no setter
Methods
-
activated(
) → StatesActivated< T> -
cast<
R> () → States< R> -
Mapping source
States<T>
toStates<R>
by casting each item asR
. -
convert<
R> (R convert(T), {Equals< R> ? equals}) → States<R> -
Convert
each item by applying a function and only emit result that changed. -
distinct(
[Equals< T> ? equals]) → States<T> - Mirror an States and emit only those items that changed (meaning item is distinct from previous emitted one).
-
map<
R> (R convert(T)) → States< R> - Transform the items emitted by States by applying a function to each item.
-
skip(
int n) → Observable< T> - Suppress the first n items emitted by States.
-
skipFirst(
) → Observable< T> - Suppress the first item emitted by States.