locale method

String locale(
  1. BuildContext context
)

Implementation

String locale(BuildContext context) {
  return Directionality.of(context) == TextDirection.ltr ? "en" : "ar";
}