getChannel method

  1. @override
Future<NotificationChannel?> getChannel(
  1. String channelId
)
override

Implementation

@override
Future<NotificationChannel?> getChannel(String channelId) async {
  final result = await methodChannel.invokeMethod<Map<dynamic, dynamic>>('getChannel', channelId);
  if (result == null) return null;
  final map = Map<String, dynamic>.from(result);
  return NotificationChannel.fromJson(map);
}