response property

Future<ResponseType> response

The result of operation.

If operation is canceled before completing, this throws a CancellationException.

Implementation

Future<ResponseType> get response async {
  final result = await operation.valueOrCancellation();
  if (result is! ResponseType || operation.isCanceled) {
    throw CancellationException(id);
  }
  return result;
}