load_time_dio_logger

Last updated:

0 purchases

load_time_dio_logger Image
load_time_dio_logger Images
Add to Cart

Description:

load time dio logger

load_time_dio_logger #
Load Time Dio logger is a Dio interceptor that logs out the time taken to make a network request.
How to use Load Time Dio Logger #
import 'package:dio/dio.dart';
import 'package:load_time_dio_logger/load_time_dio_logger.dart';

void main() async {
final dio = Dio();
dio.interceptors.add(LoadTimeDioLogger());
final response = await dio.get('https://jsonplaceholder.typicode.com/posts');
print(response.data);
}
copied to clipboard
Output #
Request to https://jsonplaceholder.typicode.com/posts took 0:04:067 seconds
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.