NumeralSystems class

Inheritance

Constructors

NumeralSystems({dynamic name})
Class for numeralSystems conversions, e.g. if you want to convert 10 (decimal) in binary:

Properties

binary Unit
no setter
conversionTree ConversionNode<NUMERAL_SYSTEMS>
getter/setter pair
decimal Unit
no setter
hashCode int
The hash code for this object.
no setterinherited
hexadecimal Unit
no setter
name ↔ dynamic
The name of the Property. If it is not a custom Property is one of the values of PROPERTY.
getter/setter pairinherited
octal Unit
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
The size of the Property, i.e. the number of the Units that belong to that Property.
getter/setter pairinherited

Methods

convert(NUMERAL_SYSTEMS name, String? value) → void
Converts a unit with a specific name (e.g. NUMERAL_SYSTEMS.decimal) and value to all other units
override
getAll() List<Unit>
Returns all the units converted with prefixes
override
getUnit(NUMERAL_SYSTEMS name) Unit
Returns the Unit with the corresponding name
override
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

Constants

mapSymbols → const Map<NUMERAL_SYSTEMS, String>