whenCancel property

Future<DioException> get whenCancel

When cancelled, this future will be resolved.

Implementation

Future<DioException> get whenCancel => _completer.future;