StringExtensions extension
- on
Properties
- isNullOrEmpty → bool
-
no setter
- orEmpty → String
-
no setter
Methods
-
capitalize(
{String separator = ' ', String replaceWith = ' '}) → String? - Capitalizes a String.
-
containsAny(
String source) → bool -
containsDigit(
) → bool -
ellipsis(
{int maxLength = 20, String replaceWith = '...'}) → String? -
formatDate(
{String outputFormat = 'yyyy-MM-dd', String inputFormat = 'yyyy-MM-dd'}) → String? -
Refer to this for the accepted
outputFormat
-
hasWhitespace(
) → bool -
intersects(
String? other) → bool - Checks the intersection between 2 strings.
-
isDigitOnly(
) → bool -
isValidDate(
{String fmt = 'yyyy-MM-dd'}) → bool -
isValidEmail(
) → bool -
notContain(
String pattern) → bool -
removeFromLast(
int length) → String? -
toDateTime(
) → DateTime? - Parses string to DateTime