dio_mocked_responses 0.9.0
dio_mocked_responses: ^0.9.0 copied to clipboard
Interceptor that help you to mock backend responses in flutter project.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dio_mocked_responsesThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
dio_mocked_responses: ^0.9.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dio_mocked_responses/dio_mock_interceptor.dart';