isRtl property

  1. @useResult
bool get isRtl

Whether the current text direction is right-to-left.

Example usage:

final code = idd.phoneCode(isRtl: context.isRtl);

Implementation

@useResult
bool get isRtl => Directionality.of(this) == TextDirection.rtl;