createChannel method

  1. @override
Future<NotificationChannel> createChannel(
  1. NotificationChannel notificationChannel
)
override

Implementation

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