retry_bot 1.0.1 copy "retry_bot: ^1.0.1" to clipboard
retry_bot: ^1.0.1 copied to clipboard

Dio interceptor Retry which makes retrying API Call When getting a timeout.

example/example.dart

import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:dio/dio.dart';
import 'package:retry_bot/retry_bot.dart';

void main() {
  final dio = Dio();

  final connectivity = Connectivity();
  final request = DioConnectivityRequest(
    connectivity: connectivity,
    dio: dio,
  );
  final retryInterceptor = OnRetryConnection(
    request: request,
  );

  dio.interceptors.add(retryInterceptor);
}
23
likes
140
points
37
downloads

Publisher

verified publisherflutterbots.dev

Weekly Downloads

Dio interceptor Retry which makes retrying API Call When getting a timeout.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

connectivity_plus, dio, flutter

More

Packages that depend on retry_bot