DigitalData class

Inheritance

Constructors

DigitalData({int significantFigures = 10, bool removeTrailingZeros = true, bool useScientificNotation = true, dynamic name})
Class for digitalData conversions, e.g. if you want to convert 1 megabit in kilobyte:

Properties

bit Unit
no setter
byte Unit
no setter
conversionTree ConversionNode<DIGITAL_DATA>
Defines the relation between the units of measurement of this property. E.g. in the following example we defined: KiloDash = 1000 * Dash, DashPlus1 = Dash + 1 and OneOver(DashPlus1) = 1 / (DashPlus1):
getter/setter pairinherited
exabit Unit
no setter
exabyte Unit
no setter
exbibit Unit
no setter
exbibyte Unit
no setter
gibibit Unit
no setter
gibibyte Unit
no setter
gigabit Unit
no setter
gigabyte Unit
no setter
hashCode int
The hash code for this object.
no setterinherited
kibibit Unit
no setter
kibibyte Unit
no setter
kilobit Unit
no setter
kilobyte Unit
no setter
mapSymbols Map<DIGITAL_DATA, String>?
Map between units and its symbol
getter/setter pairinherited
mebibit Unit
no setter
mebibyte Unit
no setter
megabit Unit
no setter
megabyte 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
nibble Unit
no setter
pebibit Unit
no setter
pebibyte Unit
no setter
petabit Unit
no setter
petabyte Unit
no setter
removeTrailingZeros bool
Whether to remove the trailing zeros or not. E.g 1.00000000 has 9 significant figures and has trailing zeros. 1 has not trailing zeros.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
significantFigures int
The number of significant figures to keep. E.g. 1.23456789) has 9 significant figures
getter/setter pairinherited
size int
The size of the Property, i.e. the number of the Units that belong to that Property.
getter/setter pairinherited
tebibit Unit
no setter
tebibyte Unit
no setter
terabit Unit
no setter
terabyte Unit
no setter
useScientificNotation bool
Whether to use the scientific notation (true) for stringValues or decimal notation (false)
getter/setter pairinherited

Methods

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