StringUtils extension

String processing utilities.

on

Properties

format String
Utility to print templated Strings.
no setter
formattedDartCode String
Format a String as dart code using dart_style DartFormatter.
no setter
snakeCase String
Convert a String to snake_case
no setter

Methods

camelCase({bool capitalize = true}) String
Convert a String to camelcase.
removePostfixIfPresent(String toRemove) String
Remove the postfix of a String if present or return current String.
removePrefixIfPresent(String toRemove) String
Remove the prefix of a String if present or return current String.