hasCancellables property

  1. @override
bool hasCancellables
override

Whether or not the token has any attached cancellables.

This is useful when testing a custom Cancellable to ensure it detatches from the token after completing.

Implementation

@override
bool get hasCancellables => _attachedCancellables.isNotEmpty;