ScientificNumberPrinter<T extends num> class

Prints numbers in a scientific format.

Inheritance

Constructors

ScientificNumberPrinter({int base = 10, List<String> characters = NumeralSystem.latin, String delimiter = delimiterString, int exponentPadding = 0, Printer<int>? exponentSign, String infinity = infinityString, int mantissaPadding = 0, Printer<double>? mantissaSign, String nan = nanString, String notation = notationString, int precision = 3, String separator = '', int separatorWidth = 3, int separatorOffset = 0, int significant = 1})
Prints numbers in a custom scientific format.

Properties

base → int
The numeric base to which the number should be printed.
final
characters → List<String>
The characters to be used to convert a number to a string.
final
defaultToStringPrinter → ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
delimiter → String
The delimiter to separate the integer and fraction part of the number.
final
exponentPadding → int
The number of digits to be printed in the exponent.
final
exponentSign → Printer<int>?
The string to be prepended if the exponent is positive or negative.
final
hashCode → int
The hash code for this object.
no setterinherited
infinity → String
The string that should be displayed if the number is infinite.
final
mantissaPadding → int
The number of digits to be printed in the mantissa.
final
mantissaSign → Printer<double>?
The string to be prepended if the mantissa is positive or negative.
final
nan → String
The string that should be displayed if the number is not a number.
final
notation → String
The string separating the mantissa and exponent.
final
precision → int
The number of digits to be printed in the fraction part.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separator → String
The separator character to be used to group digits.
final
separatorOffset → int
The offset of characters to be separated in a group.
final
separatorWidth → int
The number of characters to be separated in a group.
final
significant → int
The number of significant digits to be printed.
final
toStringPrinter → ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setteroverride

Methods

call(T object) → String
Prints the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(T object) → String
Returns the printed object.
inherited
printOn(T object, StringBuffer buffer) → void
Prints the object into buffer.
override
toString() → String
Standard Object.toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited

Operators

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