getDelay method

  1. @override
Duration getDelay(
  1. int attemptNumber
)
override

Calculates the delay for a given retry attempt. Can return a Duration directly or a Future<Duration>.

Implementation

@override
Duration getDelay(int attemptNumber) => increment * attemptNumber;