setDefaultLocale static method

dynamic setDefaultLocale(
  1. String locale
)

setDefaultLocale sets locale when Intl package is used in PlutoGrid.

PlutoGrid.setDefaultLocale('es_ES');
PlutoGrid.initializeDateFormat();

// or if you already use Intl in your app.

Intl.defaultLocale = 'es_ES';
initializeDateFormatting();

Implementation

static setDefaultLocale(String locale) {
  Intl.defaultLocale = locale;
}