utils/text
library
Functions
-
millisToDefault(int millis, {bool time = true})
→ String
-
Convert milliseconds since epoch to default formatted text, requires enabled Translator
-
textWithLinks(String text, {TextStyle? textStyle, RegExp? exp, TextStyle? linkTextStyle, required void onTapLink(String link)})
→ Widget
-
Parse text for links and return as RichText if at least one, else pure text
-
truncateText(String text, int limit, {bool wholeWords = false, bool addDots = false, bool addSpaceDots = false})
→ String
-
Truncate text for limit, optionally find nearest whitespace for whole words