SignNumberPrinter<T extends num> class

Prints numbers in various formats.

Inheritance
Available Extensions

Constructors

SignNumberPrinter({Printer<T>? negative, Printer<T>? positive})
A printer that prints a sign based on a negative and positive printer.
const
SignNumberPrinter.negativeAndPositiveSign()
A printer that prints a sign for both positive and negative numbers.
const
SignNumberPrinter.omitPositiveSign()
A printer that omits the positive sign (default).
const
SignNumberPrinter.spacePositiveSign()
A printer that puts a leading space, instead of a positive sign.
const

Properties

defaultToStringPrinter ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
negative Printer<T>
final
positive Printer<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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 toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited

Operators

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