IndentDedentStringExtension<T> extension
Methods
-
dedent({Pattern whitespace = const CharMatcher.whitespace(), bool ignoreEmpty = true})
→ String
-
Removes a common leading prefix from every line.
-
indent(String prefix, {String? firstPrefix, bool trimWhitespace = true, bool indentEmpty = false})
→ String
-
Adds a
prefix
to the beginning of each line.