map<R> method

FutureOr<R> map<R>(
  1. R transform(
    1. T value
    )
)

Implementation

FutureOr<R> map<R>(R Function(T value) transform) {
  if (this is Future<T>) {
    return (this as Future<T>).then(transform);
  }
  return transform(this as T);
}