Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 颤振取消一系列本地通知_Android_Flutter_Notifications - Fatal编程技术网

Android 颤振取消一系列本地通知

Android 颤振取消一系列本地通知,android,flutter,notifications,Android,Flutter,Notifications,我很难找到任何帮助,所以希望这里有人能够回答我的问题,请?我在安卓上有一个应用程序,使用Flutter本地通知。我知道如何使用以下方法取消所有通知: Future<void> cancelAllNotification() async { await _flutterLocalNotificationsPlugin.cancelAll(); } Future cancelAllNotification()异步{ wait_flatterLocalNotifi

我很难找到任何帮助,所以希望这里有人能够回答我的问题,请?我在安卓上有一个应用程序,使用Flutter本地通知。我知道如何使用以下方法取消所有通知:

    Future<void> cancelAllNotification() async {
    await _flutterLocalNotificationsPlugin.cancelAll();
    }
Future cancelAllNotification()异步{
wait_flatterLocalNotificationsPlugin.cancelAll();
}
我还知道,您可以使用以下方式取消ID为1的特定通知:

    Future<void> cancelNotification() async {
    await _flutterLocalNotificationsPlugin.cancel(1);
    }
Future cancelNotification()异步{
等待通知取消(1);
}
是否可以取消特定范围的通知,例如ID为1到10的任何通知


你能给我的任何帮助我都会非常感激。非常感谢

为什么不创建自己的函数来取消从id(1)到id(n)的通知