isRtl static method

bool isRtl(
  1. Locale locale
)

Implementation

static bool isRtl(Locale locale) {
  const rtlLanguages = {
    'ar', // Arabic
    'he', // Hebrew
    'fa', // Persian
    'ur', // Urdu
    'ps', // Pashto
    'sd', // Sindhi
  };

  return rtlLanguages.contains(locale.languageCode);
}