refactor(http)!: fix cascade dart good practices + docs
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
import 'dart:core';
|
||||
import 'dart:math';
|
||||
|
||||
/// Defines some delay functions.
|
||||
abstract class Delay {
|
||||
/// Returns a delay based on the [attempt].
|
||||
static Duration getRetryDelay(int attempt) {
|
||||
assert(attempt >= 0, 'attempt cannot be negative');
|
||||
if (attempt <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user