downloadOriginalGroupAvatar method Null safety

Future<Map> downloadOriginalGroupAvatar(
  1. {required String? id}
)

Implementation

Future<Map> downloadOriginalGroupAvatar({
  required String? id,
}) async {
  Map res = await _channel.invokeMethod(
      'downloadOriginalGroupAvatar',
      {
        'id': id,
      }..removeWhere((key, value) => value == null));
  return {'id': res['id'], 'filePath': res['filePath']};
}