network_inspector 1.0.4 network_inspector: ^1.0.4 copied to clipboard
Http inspector / logger for Dio and Http package. This package would allow you to log every Http request, response, and error from Dio & Http.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add network_inspector
With Flutter:
$ flutter pub add network_inspector
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
network_inspector: ^1.0.4
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:network_inspector/network_inspector.dart';