andThen<S> method

FutureOr<S> andThen<S>(
  1. FutureOr<S> action(
    1. T? value
    ), {
  2. Function? onError,
})

Implementation

FutureOr<S> andThen<S>(FutureOr<S> Function(T? value) action,
    {Function? onError}) {
  final that = this;

  if (that == null) {
    return action(null);
  } else {
    return that._innerThen(action, onError: onError);
  }
}