mock_event_channel 0.1.1+1
mock_event_channel: ^0.1.1+1 copied to clipboard
Temporary package to add support for mocking EventChannels in Flutter
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add mock_event_channelThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
mock_event_channel: ^0.1.1+1Alternatively, 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:mock_event_channel/mock_event_channel.dart';