Convert class

Conversion methods from String to the Dart primitive types.

Constructors

Convert()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

toBool Converter<bool>
Converts '1', 'true', and 'TRUE' to true.
no setter
toDouble Converter<double>
Parses a double fron a string.
no setter
toInt Converter<int>
Parses an int from a string.
no setter
toUri Converter<Uri>
Parses an int from a string.
no setter

Static Methods

ifEquals(dynamic value) Converter<bool>
Returns true if an attribute's string matches this value. Used by @ifEquals.
ifMatches(dynamic regexp) Converter<bool>
Returns true if an attribute's string matches a regular expression. The expression is a raw string (r'foo').