Browse Source

migrated notification_service.dart to null safety

ashilkn 2 năm trước cách đây
mục cha
commit
d4c226d10a
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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 '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 {
     if (!Platform.isAndroid) {