wrapWithUnicode method
Wraps the text with unicode BiDi formatting characters based on the provided or estimated direction.
If textDirection is not provided, it estimates the text direction.
If isHtml is false, the text is HTML-escaped.
If resetDir is true and the overall directionality or the exit directionality of the text is opposite to the context directionality,
a trailing unicode BiDi mark matching the context directionality is appended (LRM or RLM).
Implementation
String wrapWithUnicode({
TextDirection textDirection = textDirectionUNKNOWN,
bool isHtml = false,
bool resetDir = true,
}) =>
textDirection.toBidiFormatter().wrapWithUnicode(
this,
isHtml: isHtml,
resetDir: resetDir,
direction: textDirection,
);