Formatter class

This class will figure out the best way to format a set of numbers so that they are not overly specific (1000 and 2000 become 1K and 2K) and that they still maintain their differences (1000.1 and 1001.1 become 1000 and 1001).

Constructors

Formatter(List<double> numbers)
The constructor takes a list of numbers. It is best to provide all the numbers that will be represented alongside each other, or at least a good sample of them.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(double number) String
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