enforceLtrInText static method

String enforceLtrInText(
  1. String text
)

Enforce LTR on both end of the given text using unicode BiDi formatting characters LRE and PDF.

Implementation

static String enforceLtrInText(String text) => '$LRE$text$PDF';