string/text_direction_parse_utils library

Pure-Dart parser for the CSS/HTML/Unicode ltr / rtl direction tokens.

The package is Flutter-free by design, so this ships the pure-Dart enum variant rather than returning Flutter's dart:ui TextDirection — pulling Flutter in for a one-line wrapper would be a portability regression for every consumer. Callers map TextWritingDirection to the framework type at the UI boundary if they need it.

Classes

TextDirectionParseUtils
Parses a short text-direction token into a typed TextWritingDirection.

Enums

TextWritingDirection
Writing direction parsed from a short token, with no Flutter dependency.