updateChannel method

  1. @override
Future<NotificationChannel> updateChannel(
  1. NotificationChannelUpdate update
)
override

Implementation

@override
Future<NotificationChannel> updateChannel(NotificationChannelUpdate update) async {
  var result = await methodChannel.invokeMethod<Map>(
    'createChannel',
    update.toJson(),
  );
  result = Map<String, dynamic>.from(result!);
  return NotificationChannel.fromJson(result as Map<String, dynamic>);
}