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?

Available on String?, provided by the ExString extension

center a string to a given length add spaces to the left and right of the string e.g. "1234567890" -> " 1234567890 "
clean_url() String?

Available on String?, provided by the ExString extension

exclude(String exclude) String?

Available on String?, provided by the ExString extension

has(String? value) bool

Available on String?, provided by the ExString extension

hasAll(List<String> values) bool

Available on String?, provided by the ExString extension

hasAny(List<String> values) bool

Available on String?, provided by the ExString extension

hasNumber() bool

Available on String?, provided by the ExString extension

hasSpecialCharacters() bool

Available on String?, provided by the ExString extension

is_length(int length) bool

Available on String?, provided by the ExString extension

is_length_between(int min, int max) bool

Available on String?, provided by the ExString extension

is_longer_than(int length) bool

Available on String?, provided by the ExString extension

is_shorter_than(int length) bool

Available on String?, provided by the ExString extension

obscure({int start = 0, int end = 0, String obscureWith = '*'}) String?

Available on String?, provided by the ExString extension

remove(String remove) String?

Available on String?, provided by the ExString extension

removeFirst(String remove) String?

Available on String?, provided by the ExString extension

removeLast(String remove) String?

Available on String?, provided by the ExString extension

removeNumbers() String?

Available on String?, provided by the ExString extension

removeSpaces() String?

Available on String?, provided by the ExString extension

removeSpecialCharacters() String?

Available on String?, provided by the ExString extension

shorten(int length) String?

Available on String?, provided by the ExString extension

shorten a string to a given length split the string in half and add ... in the middle e.g. "1234567890" -> "123...890"