Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.