BidiFormatter.LTR constructor Null safety
- [bool alwaysSpan = false]
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([bool alwaysSpan = false])
: contextDirection = TextDirection.LTR,
_alwaysSpan = alwaysSpan;