isCurrentLocaleRtl static method

bool isCurrentLocaleRtl({
  1. BuildContext? context,
})

Check if the current locale uses right-to-left text direction.

Implementation

static bool isCurrentLocaleRtl({BuildContext? context}) {
  return isRtlLanguage(getLanguageCode(context: context));
}