then<R> method

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

Implementation

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