setLocale method

Future<void> setLocale (Locale locale)

Sets the locale for this database.

Does nothing if this database has the NO_LOCALIZED_COLLATORS flag set or was opened read-only.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#setLocale(java.util.Locale)

Implementation

Future<void> setLocale(final Locale locale) {
  final Map<String, dynamic> request = <String, dynamic>{
    'id': id,
    'locale': locale.toString()
  };
  return _channel.invokeMethod('setLocale', request);
}