Skip to content

Commit b63b398

Browse files
committed
Fixes issues with dart not detecting that the nullable property is already checked as not null. Issue similar to dart-lang/language#1415
1 parent 8b098e1 commit b63b398

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/notification_service.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Future<void> initLocalNotifications() async {
2727
Future<void> onSelectNotification(NotificationResponse response) async {
2828
debugPrint("Notification payload: ${response.payload}");
2929
if (response.payload == null) return;
30-
OpenResult result = await OpenFilex.open(response.payload);
30+
final payload = response.payload!;
31+
OpenResult result = await OpenFilex.open(payload);
3132
debugPrint(result.message);
3233
}
3334

0 commit comments

Comments
 (0)