changeGroupType method Null safety

Future<void> changeGroupType(
  1. {required String? groupId,
  2. required JMGroupType? type}
)

Implementation

Future<void> changeGroupType({
  required String? groupId,
  required JMGroupType? type,
}) async {
  await _channel.invokeMethod(
      'changeGroupType',
      {'groupId': groupId, 'type': getStringFromEnum(type)}
        ..removeWhere((key, value) => value == null));
  return;
}