easy_mock_local_notifications 0.1.0
easy_mock_local_notifications: ^0.1.0 copied to clipboard
Makes flutter_local_notifications work under `flutter test`. mockLocalNotifications.init() registers the real Android platform impl (the native registrant that normally does this doesn't run in tests, [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add easy_mock_local_notificationsThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
easy_mock_local_notifications: ^0.1.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:easy_mock_local_notifications/easy_mock_local_notifications.dart';