Skip to content

Commit

Permalink
binding: Add notifications.receiveNotificationResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Nov 2, 2023
1 parent f76e51f commit 2f9a3ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/model/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ class FakeFlutterLocalNotificationsPlugin extends Fake implements FlutterLocalNo
assert(initializationSettings != null);
_showCalls.add((id, title, body, notificationDetails, payload: payload));
}

void receiveNotificationResponse(NotificationResponse details) {
if (onDidReceiveNotificationResponse != null) {
onDidReceiveNotificationResponse!(details);
}
}
}

typedef FlutterLocalNotificationsPluginShowCall = (
Expand Down

0 comments on commit 2f9a3ca

Please sign in to comment.