flutterDefenderTextDirectionForLocale function
Returns TextDirection.rtl for locales that are typically right-to-left, otherwise TextDirection.ltr. Used when forcing a blocking UI locale.
Implementation
TextDirection flutterDefenderTextDirectionForLocale(Locale locale) {
return intl.Bidi.isRtlLanguage(locale.languageCode)
? TextDirection.rtl
: TextDirection.ltr;
}