ui/bidi_text library
Functions
-
directionOf(
String text) → TextDirection? -
Wraps every grouped-digit run in
textwith LRI…PDI so it keeps its own left-to-right order when laid out inside an RTL paragraph, instead of the bidi algorithm reordering the groups themselves — the+20 2 2411 8610→8610 2411 2 20+defect this exists to fix. -
isolateBidi(
String text, TextDirection direction, {bool wholeRun = true}) → String