StringExtensions extension

on

Methods

capitalize() String

Available on String, provided by the StringExtensions extension

capitalizes a given string 'hello' => 'Hello' 'Hello' => 'Hello' '' => ''
toCase(KeyCase? keyCase) String

Available on String, provided by the StringExtensions extension

transforms the string to the specified case if case is null, then no transformation will be applied
toEnumConstant() String

Available on String, provided by the StringExtensions extension

transforms the string to a enum constant used for AppLocale enum