andThenAsync<U extends Object> method
This is the async version of andThen.
Implementation
Future<TaskResult<U, E>> andThenAsync<U extends Object>(FutureOr<TaskResult<U, E>> Function(T data) op) async {
if (isOk) {
return await op(data!);
}
return Err(error!);
}