create method
Creates a new contact group.
account - Optional account. If null, uses the default account.
Returns the created group with its assigned ID.
Implementation
Future<Group> create(String name, {Account? account}) async {
final result = await _channel.invokeMethod<Map>('groups.create', {
'name': name,
if (account != null) 'account': account.toJson(),
});
return JsonHelpers.decode(result, Group.fromJson)!;
}