LceUseCase<DATA extends Object> class
abstract
- Implementers
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ Stream<
LceState< DATA> > -
Model state. Subscription starts data load for the first subscriber.
Whenever last subscriber cancels, the model unsubscribes internal components for data updates
no setter
Methods
-
map<
DATA_2 extends Object> (DATA_2 mapper(DATA data)) → LceUseCase< DATA_2> -
Available on LceUseCase<
Creates a use-case wrapper that convertsDATA> , provided by the LceUseCaseExtension extensionDATA_1toDATA_2DATA_2Resulting data typemapperData mapper -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → Future< void> - Requests a refresh of data. Data will be updated asynchronously
-
refreshed(
) → LceUseCase< DATA> -
Available on LceUseCase<
Wraps use-case to refresh on each subscriptionDATA> , provided by the LceUseCaseExtension extension -
toString(
) → String -
A string representation of this object.
inherited
-
withRefresh(
Stream refresh) → Stream< LceState< DATA> > -
Available on LceUseCase<
Takes the LceUseCase.state of model that is being refreshed each timeDATA> , provided by the LceUseCaseExtension extensionrefreshemits a value Useful when you create a model as a result of mapping of some input (params for example) and the LceUseCase.refresh property becomes invisible for the outside worldDATASource model data typerefreshWhenever this stream emits a value, the model is refreshed
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited