Utils class
Some utilities used in this package
Constructors
- Utils()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Properties
Static Methods
-
enumFromString<
T> (Iterable< T> values, String value) → T -
Returns an enum type from its String representation
value
.values
must be the list of enum types defined byT
. It is legal thatvalue
be specfied with or withoutT
:.value or value are both legal. Example: enum Fruit { apple, banana }, i.e. T = Fruit. Fruit.apple.toString() will result in "Fruit.apple". Fruit.banana.toString() will result in "Fruit.banana". In order to reconstruct the enum type Fruit.banana from its String representation "Fruit.banana", or just from "banana", do the following: Fruit banana_fruit = enumFromString (Fruit.values, "Fruit.banana"); or just Fruit banana_fruit = enumFromString (Fruit.values, "banana"); -
getBoolFromString(
String s) → bool -
Returns true if
s
= TRUE, otherwise false (even for s=null). -
parseBool(
String s) → bool - Other function name for getBoolFromString()