locale method

Locale locale({
  1. bool nullOk = false,
})

The Locale instance from the closest context.

Implementation

Locale locale({bool nullOk = false}) => Localizations.localeOf(this);