StringValidator extension

Extension on String to provide additional validation and conversion methods.

on

Properties

isDouble bool

Available on String, provided by the StringValidator extension

no setter
isEmail bool

Available on String, provided by the StringValidator extension

Checks if the string is a valid email address.
no setter
isInt bool

Available on String, provided by the StringValidator extension

Checks if the string represents a valid integer.
no setter
isPassword bool

Available on String, provided by the StringValidator extension

Checks if the string is a valid password.
no setter
toBool bool

Available on String, provided by the StringValidator extension

Converts the string to a boolean value.
no setter

Methods

toInt({dynamic def = -1}) int

Available on String, provided by the StringValidator extension

Converts the string to an integer.