map<R> method

ValueListenable<R> map<R>(
  1. R mapper(
    1. T value
    )
)

Maps the value of the ValueNotifier to a new value.

Implementation

ValueListenable<R> map<R>(R Function(T value) mapper) {
  return MappedValueNotifier(this, mapper);
}