Fake HTTP entities for testing.
Add this to your package's pubspec.yaml file:
dependencies: httpstub: "^0.2.0"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support pub. Check the docs for your editor to learn more.
Now in your Dart code, you can use: