incrementAttempt method

void incrementAttempt()

Increments the number of times the request has been attempted.

Implementation

void incrementAttempt() => extra['attempt'] = attempt + 1;