setPreferredLocale method
Set the server's preferred locale.
await server.setPreferredLocale('en-US', reason: 'Testing');
Implementation
Future<void> setPreferredLocale(String value, {String? reason}) async {
await _serverPart.updateServer(id, {'preferred_locale': value}, reason);
}