getGroup method

  1. @override
Future<NotificationChannelGroup?> getGroup(
  1. String groupId
)
override

Implementation

@override
Future<NotificationChannelGroup?> getGroup(String groupId) async {
  final result = await methodChannel.invokeMethod<Map>('getGroup', groupId);
  if (result == null) return null;
  final map = Map<String, dynamic>.from(result);
  map['channels'] = (map['channels'] as List).map((e) => Map<String, dynamic>.from(e)).toList();
  return NotificationChannelGroup.fromJson(map);
}