hasCancellables property

bool get hasCancellables

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

bool get hasCancellables => _attachedCancellables.isNotEmpty;