attempts property

int attempts

The number of retry attempts so far. If the action has not been retried yet, it will be 0. If the action finished successfully, it will be equal or less than maxRetries. If the action failed and gave up, it will be equal to maxRetries plus 1.

Implementation

int get attempts => _attempts;