Skip to content

Commit

Permalink
and local notif binding assert initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Oct 12, 2023
1 parent a7563d5 commit cf2d64a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/model/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ class FakeFlutterLocalNotificationsPlugin extends Fake implements FlutterLocalNo
T? resolvePlatformSpecificImplementation<T extends FlutterLocalNotificationsPlatform>() {
// This follows the logic of the base class's implementation,
// but supplies our fakes for the per-platform classes.
assert(initializationSettings != null);
assert(T != FlutterLocalNotificationsPlatform);
if (kIsWeb) return null;
switch (defaultTargetPlatform) {
Expand All @@ -262,6 +263,7 @@ class FakeFlutterLocalNotificationsPlugin extends Fake implements FlutterLocalNo
@override
Future<void> show(int id, String? title, String? body,
NotificationDetails? notificationDetails, {String? payload}) async {
assert(initializationSettings != null);
showCalls.add((id, title, body, notificationDetails, payload: payload));
}
}
Expand Down

0 comments on commit cf2d64a

Please sign in to comment.