NumberConverter class

Converter for numerous NumberBases.

Inheritance

Constructors

NumberConverter.radix(int radix)
Creates a custom NumberConverter with the given radix.
const

Properties

category String
The id of the category of this unit.
no setteroverride
categoryName String
The id of the category of this unit.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasSymbol bool
Whether this unit has a symbol.
no setterinherited
id String
The id of this unit.
finalinherited
name String
The localized name of this unit.
no setteroverride
radix int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
The localized symbol of this unit.
no setterinherited

Methods

call(Converter<String> other, String value) String
Convertes the given value from this unit to the other unit.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
to(Converter<String> other, String value) String
Convertes the given value from this unit to the other unit.
override
toString() String
A string representation of this object.
inherited
typeCheckConverter<C extends Converter<T>>(Converter<String> other) → C
Throws an ArgumentError if the Types of the two Converters don't match and returns the casted converter otherwise.
inherited

Operators

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