AlphaFormatter class

Formatter for alpha in color

Inheritance

Constructors

AlphaFormatter(Contexts context)
alpha from num to string

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
precision int
x.12345678. null do nothing x.12345000 -> x.12345 remove trailing zeros
read / write, inherited
removeLeadingZero bool
0.x -> .x. false do nothing
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tryInt bool
try convert as if value is int. false do nothing
read / write, inherited

Methods

adjustPrecision(num value) num
Return the value adjusted by defined precision
inherited
format(num value, {bool formatted: false}) String
Returns a value as String without decimals if possible. Ex. (1, 1.2, .2)
inherited
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 ==(Object other) bool
The equality operator. [...]
inherited