channel_mock 2.0.1 copy "channel_mock: ^2.0.1" to clipboard
channel_mock: ^2.0.1 copied to clipboard

A package to help mock communications channels in Flutter to make unit testing and mocking flutter plugins easier

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add channel_mock

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  channel_mock: ^2.0.1

Alternatively, 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:channel_mock/channel_mock.dart';
0
likes
150
points
427
downloads

Publisher

verified publisherflutter.institute

Weekly Downloads

A package to help mock communications channels in Flutter to make unit testing and mocking flutter plugins easier

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter, flutter_test

More

Packages that depend on channel_mock