RetryOptions class
Constructors
- RetryOptions({int retries = 3, RetryEvaluator retryEvaluator = defaultRetryEvaluator, Duration retryInterval = const Duration(seconds: 1)})
- 
          
            const
- RetryOptions.fromExtra(RequestOptions request)
- 
          
            factory
- RetryOptions.noRetry()
- 
          
            factory
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- retries → int
- 
  The number of retry in case of an error
  final
- retryEvaluator → RetryEvaluator
- 
  Evaluating if a retry is necessary.regarding the error.
  no setter
- retryInterval → Duration
- 
  The interval before a retry.
  final
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  copyWith({int? retries, Duration? retryInterval}) → RetryOptions 
- 
  mergeIn(Options options) → Options 
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toExtra() → Map< String, dynamic> 
- 
  toOptions() → Options 
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  defaultRetryEvaluator(DioError error) → FutureOr< bool> 
- Returns bool = true only if the response hasn't been cancelled or got a bas status code.