StringExt extension
- on
Properties
- isEmptyOrNull → bool
-
Return
true
if the string this isnull
or emptyno setter - isNotEmptyOrNull → bool
-
Return
true
if the string this is notnull
or emptyno setter
Methods
-
toDouble(
{double? defaultValue}) → double? -
Parse
this
string as an double literal and return its value. -
toInt(
{int? defaultValue}) → int? -
Parse
this
string as a, possibly signed, integer literal and return its value. -
validate(
String pattern) → bool -
Returns whether the regular expression
pattern
has a match inthis
string. -
validateEmail(
) → bool -
Returns whether
this
string is a valid email address