ExString extension
String extensions
- on
Properties
- camel_case → String?
-
Available on String?, provided by the ExString extension
no setter - capitalize → String?
-
Available on String?, provided by the ExString extension
no setter - capitalize_first → String?
-
Available on String?, provided by the ExString extension
no setter - is_empty → bool
-
Available on String?, provided by the ExString extension
Returns true if the string is null or empty.no setter - is_not_empty → bool
-
Available on String?, provided by the ExString extension
no setter - len → int
-
Available on String?, provided by the ExString extension
no setter - snake_case → String?
-
Available on String?, provided by the ExString extension
no setter - title_case → String?
-
Available on String?, provided by the ExString extension
no setter - title_case_words → String?
-
Available on String?, provided by the ExString extension
no setter - titleCase → String?
-
Available on String?, provided by the ExString extension
no setter
Methods
-
center(
int length) → String? - center a string to a given length add spaces to the left and right of the string e.g. "1234567890" -> " 1234567890 "
-
clean_url(
) → String? -
exclude(
String exclude) → String? -
has(
String? value) → bool -
hasAll(
List< String> values) → bool -
hasAny(
List< String> values) → bool -
hasNumber(
) → bool -
hasSpecialCharacters(
) → bool -
is_length(
int length) → bool -
is_length_between(
int min, int max) → bool -
is_longer_than(
int length) → bool -
is_shorter_than(
int length) → bool -
obscure(
{int start = 0, int end = 0, String obscureWith = '*'}) → String? -
remove(
String remove) → String? -
removeFirst(
String remove) → String? -
removeLast(
String remove) → String? -
removeNumbers(
) → String? -
removeSpaces(
) → String? -
removeSpecialCharacters(
) → String? -
shorten(
int length) → String? - shorten a string to a given length split the string in half and add ... in the middle e.g. "1234567890" -> "123...890"