浏览代码

migrated notification_service.dart to null safety

ashilkn 2 年之前
父节点
当前提交
d4c226d10a
共有 1 个文件被更改,包括 1 次插入3 次删除
  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) {