LceUseCaseExtension<DATA extends Object> extension

LceState stream extensions

on

Methods

map<DATA_2 extends Object>(DATA_2 mapper(DATA data)) LceUseCase<DATA_2>
Creates a use-case wrapper that converts DATA_1 to DATA_2 DATA_2 Resulting data type mapper Data mapper
refreshed() LceUseCase<DATA>
Wraps use-case to refresh on each subscription
withRefresh(Stream refresh) Stream<LceState<DATA>>
Takes the LceUseCase.state of model that is being refreshed each time refresh emits 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 world DATA Source model data type refresh Whenever this stream emits a value, the model is refreshed