isRTL property

bool get isRTL

Check if the current directionality is right-to-left

Example: context.isRTL

Implementation

bool get isRTL => Directionality.of(this) == TextDirection.rtl;