of method

Implementation

ChartTranslations of(BuildContext context) {
  final locale = Localizations.localeOf(context);
  final languageTag = '${locale.languageCode}_${locale.countryCode}';

  return this[languageTag] ?? ChartTranslations();
}