getChannel method

  1. @override
Future<NotificationChannel?> getChannel(
  1. String channelId, {
  2. String? conversationId,
})
override

Implementation

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