then<R> method

Future<R> then<R>(
  1. FutureOr<R> onValue(
    1. T
    ), {
  2. Function? onError,
})

Implementation

Future<R> then<R>(
  FutureOr<R> Function(T) onValue, {
  Function? onError,
}) =>
    Future.value(this).then(onValue, onError: onError);