then<R> method

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

Implementation

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