ShorteningPolicy enum

Constants

Automatic → const ShorteningPolicy

uses K, M, B, or T depending on how big the numeric value is

const ShorteningPolicy(5)
NoShortening → const ShorteningPolicy

displays a value of 1234456789.34 as 1,234,456,789.34

const ShorteningPolicy(0)
RoundToBillions → const ShorteningPolicy

displays a value of 1234456789.34 as 1B

const ShorteningPolicy(3)
RoundToMillions → const ShorteningPolicy

displays a value of 1234456789.34 as 1,234M

const ShorteningPolicy(2)
RoundToThousands → const ShorteningPolicy

displays a value of 1234456789.34 as 1,234,456K

const ShorteningPolicy(1)
RoundToTrillions → const ShorteningPolicy
const ShorteningPolicy(4)
values → const List<ShorteningPolicy>

A constant List of the values in this enum, in order of their declaration.

const List<ShorteningPolicy>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited