BidiFormatter.LTR constructor
Create a formatting object with a direction. If alwaysSpan
is true we
should always use a span
tag, even when the input directionality is
neutral or matches the context, so that the DOM structure of the output
does not depend on the combination of directionalities.
Implementation
BidiFormatter.LTR([alwaysSpan = false])
: contextDirection = TextDirection.LTR,
_alwaysSpan = alwaysSpan;