directionOf static method
The manifest's direction for the active language — never inferred from the locale code.
Implementation
static TextDirection directionOf(BuildContext context) {
final LLContentModel? model = InheritedModel.inheritFrom<LLContentModel>(
context,
aspect: LLAspect.direction);
return model?.direction == LLTextDirection.rtl
? TextDirection.rtl
: TextDirection.ltr;
}