then<R> method
Chains a callback to the resolved value.
Equivalent to calling resolveAsync and then "then" on the resulting Future.
Implementation
Future<R> then<R>(
FutureOr<R> Function(V value) onValue, {
Function? onError,
}) => resolveAsync().then(onValue, onError: onError);