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