ArabicDirection class
Direction-detection utilities for Arabic and Latin script text.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
dominantDirection(
String text) → ArabicTextDirection -
Returns the dominant ArabicTextDirection of
textbased on the presence of right-to-left and left-to-right strong-directional characters. LTR detection covers Latin script (A-Z, a-z) only — other left-to-right scripts (Cyrillic, CJK, etc.) are treated as neutral. -
isLtr(
String text) → bool -
Returns true if the first strong-directional character in
textis left-to-right script. -
isMixedDirection(
String text) → bool -
Returns true if
textcontains both right-to-left and left-to-right strong-directional characters. -
isRtl(
String text) → bool -
Returns true if the first strong-directional character in
textis right-to-left script.