OrdinalNumberPrinter class

Prints numbers in an ordinal format.

Inheritance

Constructors

OrdinalNumberPrinter({int base = 10, List<String> characters = NumeralSystem.lowerCaseLatin, int padding = 0, String separator = '', Printer<int>? sign})
Prints numbers in an ordinal 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
hashCode int
The hash code for this object.
no setterinherited
padding int
The number of digits to be printed in the number 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
sign Printer<int>?
The printer used for negative or positive numbers.
final
toStringPrinter ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setteroverride

Methods

call(int object) String
Prints the object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
print(int object) String
Returns the printed object.
inherited
printOn(int 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