printer library
Provides a first-class model to convert object to strings using composition and highly configurable formatting primitives.
Classes
- DateTimePrinter
- Prints DateTime objects in custom ways.
- DurationPrinter
- Prints Duration objects in custom ways.
-
FieldPrinter<
T> - Abstract field description.
-
FixedNumberPrinter<
T extends num> - Prints numbers in a fixed format.
-
HumanNumberPrinter<
T extends num> - Prints numbers in a custom human readable string.
-
LiteralPrinter<
T> - Prints a string literal.
- NumeralSystem
- A class defining different numeral systems for number printing.
-
ObjectPrinter<
T> - Configurable printer for standard objects.
- OrdinalNumberPrinter
- Prints numbers in an ordinal format.
-
Printer<
T> -
An abstract function that prints objects of type
T
. -
ScientificNumberPrinter<
T extends num> - Prints numbers in a scientific format.
-
SequencePrinter<
T> - Prints a sequence of printers.
-
SignNumberPrinter<
T extends num> - Prints numbers in various formats.
-
StandardPrinter<
T> - Calls the standard toString method.
-
TypePrinter<
T> - Printer of the dynamic runtime type.
Enums
- TruncateMethod
- Method to truncate.
Mixins
- ToStringPrinter
-
A mixin to provide a consistent
toString()
implementation.
Extensions
-
BuilderPrinterExtension
on Printer<
T> -
EmptyPrinterExtension
on Printer<
Iterable< T> > -
IterablePrinterExtension
on Printer<
T> -
NullPrinterExtension
on Printer<
T> -
PadPrinterExtension
on Printer<
T> -
ResultOfPrinterExtension
on Printer<
R> -
SeparatePrinterExtension
on Printer<
T> -
SequencePrinterIterableExtension
on Iterable<
Printer< T> > -
SequencePrinterPrinterExtension
on Printer<
T> -
TakeSkipPrinterExtension
on Printer<
T> -
TrimPrinterExtension
on Printer<
T> -
TruncatePrinterExtension
on Printer<
T> -
WherePrinterExtension
on Printer<
T>
Properties
-
unicodeCodePointPrinter
→ Printer<
int> -
Prints a unicode code-point.
final