Skip to content

Commit eef57f7

Browse files
gnpricechrisbobbe
authored andcommitted
binding: Add notifications.getNotificationAppLaunchDetails
1 parent dcf13e5 commit eef57f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/model/binding.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,14 @@ class FakeFlutterLocalNotificationsPlugin extends Fake implements FlutterLocalNo
318318
_showCalls.add((id, title, body, notificationDetails, payload: payload));
319319
}
320320

321+
/// The value to be returned by [getNotificationAppLaunchDetails].
322+
NotificationAppLaunchDetails? appLaunchDetails;
323+
324+
@override
325+
Future<NotificationAppLaunchDetails?> getNotificationAppLaunchDetails() {
326+
return Future.value(appLaunchDetails);
327+
}
328+
321329
void receiveNotificationResponse(NotificationResponse details) {
322330
if (onDidReceiveNotificationResponse != null) {
323331
onDidReceiveNotificationResponse!(details);

0 commit comments

Comments
 (0)