StringFormatters class
String formatting utilities
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
capitalize(
String text) → String - Capitalizes the first letter
-
capitalizeWords(
String text) → String - Capitalizes each word
-
mask(
String text, {int visibleChars = 4, String maskChar = '*'}) → String - Masks sensitive information
-
slug(
String text) → String - Formats a string as a slug
-
truncate(
String text, int maxLength, {String ellipsis = '...'}) → String - Truncates a string with ellipsis