setPreferredLocale method

Future<void> setPreferredLocale(
  1. String value, {
  2. String? reason,
})

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);
}