map<M> method

RxState<M> map<M>(
  1. M mapper(
    1. T
    )
)

Implementation

RxState<M> map<M>(M Function(T) mapper) {
  return RxState<M>(value != null ? mapper(value as T) : null)
      .addStream(stream.map(mapper));
}