updateChannels method
Future<List<NotificationChannel> >
updateChannels(
- List<
NotificationChannelUpdate> updates
override
Implementation
@override
Future<List<NotificationChannel>> updateChannels(List<NotificationChannelUpdate> updates) async {
var result = await methodChannel.invokeMethod<List>(
'createChannels',
updates.map((channel) => channel.toJson()).toList(),
) ??
[];
result = result.map((e) => Map<String, dynamic>.from(e)).toList();
return result.map((json) => NotificationChannel.fromJson(json)).toList();
}