Sanitizer class

Constructors

Sanitizer()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

blacklist(String str, String chars) String
remove characters that appear in the blacklist. [...]
escape(String str) String
replace <, >, &, ' and " with HTML entities
ltrim(String str, [String chars]) String
trim characters from the left-side of the input
normalizeEmail(String email, [Map options]) String
canonicalize an email address. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rtrim(String str, [String chars]) String
trim characters from the right-side of the input
stripLow(String str, [bool keepNewLines]) String
remove characters with a numerical value < 32 and 127. [...]
toAString(dynamic input) String
convert the input to a string
toBoolean(String str, [bool strict]) bool
convert the input to a boolean. [...]
toDate(String str) DateTime
convert the input to a date, or null if the input is not a date
toDouble(String str) double
convert the input to a float, or NAN if the input is not a float
toFloat(String str) double
convert the input to a float, or NAN if the input is not a float
toInt(String str, {int radix = 10}) num
convert the input to an integer, or NAN if the input is not an integer
toString() String
A string representation of this object. [...]
inherited
trim(String str, [String chars]) String
trim characters (whitespace by default) from both sides of the input
whitelist(String str, String chars) String
remove characters that do not appear in the whitelist. [...]

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited