ScientificFormatSI class

Formats a number as a single integer digit, followed by decimal digits and raised to a power of 10 (e.g., 1.2345 x 10^3).

Inheritance

Constructors

ScientificFormatSI({bool unicode = false})
Constructs a instance.

Properties

currencyName ↔ String?
The name of the currency to print, in ISO 4217 form.
getter/setter pairinherited
currencySymbol → String
The symbol to be used when formatting this as currency.
no setterinherited
decimalDigits → int?
The number of decimal places to use when formatting.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
locale → String
Return the locale code in which we operate, e.g. 'en_US' or 'pt'.
no setterinherited
localeZero → int
The code point for the locale's zero digit.
no setterinherited
maximumFractionDigits ↔ int
getter/setter pairinherited
maximumIntegerDigits ↔ int
getter/setter pairinherited
maximumSignificantDigits ↔ int?
getter/setter pairinherited
minimumExponentDigits ↔ int
getter/setter pairinherited
minimumFractionDigits ↔ int
getter/setter pairinherited
minimumIntegerDigits ↔ int
getter/setter pairinherited
minimumSignificantDigits ↔ int?
getter/setter pairinherited
minimumSignificantDigitsStrict ↔ bool
Whether minimumSignificantDigits should cause trailing 0 in fraction part.
getter/setter pairinherited
multiplier → int
For percent and permille, what are we multiplying by in order to get the printed value, e.g. 100 for percent.
no setterinherited
negativePrefix → String
Variables to determine how number printing behaves.
no setterinherited
negativeSuffix → String
no setterinherited
positivePrefix → String
no setterinherited
positiveSuffix → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
significantDigits ↔ int?
How many significant digits should we print.
getter/setter pairinherited
significantDigitsInUse ↔ bool
getter/setter pairinherited
symbols → NumberSymbols
Return the symbols which are used in our locale. Cache them to avoid repeated lookup.
no setterinherited
unicode ↔ bool
Output in unicode (using unicode thin spaces instead of regular ascii spaces).
getter/setter pairinherited

Methods

adjustForExponent(String str) → String
Move the decimal point to just after the first integer digit.
override
format(dynamic value) → String
value is expected to be a Quantity, Number or num object.
inherited
insertSpaces(String str) → String
Returns a String with spaces added according to SI guidelines.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String text) → num
Parse the number represented by the string. If it's not parseable, throws a FormatException.
inherited
parseWith<R, P extends NumberParserBase<R>>(P parserGenerator(NumberFormat p1, String p2), String text) → R
Parse the number represented by the string using the parser created by the supplied parser generator. If it's not parseable, throws a FormatException.
inherited
simpleCurrencySymbol(String currencyCode) → String
Returns the simple currency symbol for given currency code, or currencyCode if no simple symbol is listed.
inherited
toString() → String
A string representation of this object.
inherited
tryParse(String text) → num?
Parse the number represented by the string. If it's not parsable, returns null.
inherited
tryParseWith<R, P extends NumberParserBase<R>>(P parserGenerator(NumberFormat p1, String p2), String text) → R?
Parse the number represented by the string using the parser created by the supplied parser generator. If it's not parsable, returns null.
inherited
turnOffGrouping() → void
Explicitly turn off any grouping (e.g. by thousands) in this format.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited