Browse Source

migrated notification_service.dart to null safety

ashilkn 2 years ago
parent
commit
d4c226d10a
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lib/services/notification_service.dart

+ 1 - 3
lib/services/notification_service.dart

@@ -1,5 +1,3 @@
-// @dart=2.9
-
 import 'dart:io';
 import 'dart:io';
 
 
 import 'package:flutter_local_notifications/flutter_local_notifications.dart';
 import 'package:flutter_local_notifications/flutter_local_notifications.dart';
@@ -28,7 +26,7 @@ class NotificationService {
     );
     );
   }
   }
 
 
-  Future selectNotification(String payload) async {}
+  Future selectNotification(String? payload) async {}
 
 
   Future<void> showNotification(String title, String message) async {
   Future<void> showNotification(String title, String message) async {
     if (!Platform.isAndroid) {
     if (!Platform.isAndroid) {