INNER CODE UNIT · Dart
MockNotificationController
EmadBeltaje/flutter_getx_template · integration_test/awesome_notifications_helper_test.dart:169
class MockNotificationController {
/// Use this method to detect when a new notification or a schedule is created
@pragma("vm:entry-point")
static Future <void> onNotificationCreatedMethod(ReceivedNotification receivedNotification) async {
Get.find<TestController>().incrementCounter();
}
/// Use this method to detect every time that a new notification is displayed
@pragma("vm:entry-point")
static Future <void> onNotificationDisplayedMethod(ReceivedNotification receivedNotification) async {
// Your code goes here
}
/// Use this method to detect if the user dismissed a notification
@pragma("vm:entry-point")
static Future <void> onDismissActionReceivedMethod(ReceivedAction receivedAction) async {
Get.find<TestController>().decrementCounter();
}