ClassToString class abstract

Interface for Object.toString output pretty class to string.

Constructors

ClassToString(String className, [Iterable<Type> types = const []])
Constructor to use the default ClassToString
factory
ClassToString.flat(String name, [Iterable<Type> types])
A ClassToString that produces single line output.
factory
ClassToString.indent(String name, [Iterable<Type> types])
A ClassToString that produces multi-line indented output.
factory
ClassToString.json(String name, [Iterable<Type> types])
A ClassToString that produces multi-line indented output.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(String name, Object? value) → void
Add param or field and its nullable value.
addIfExist(String name, Object? value) → void
Add param or field and its value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns to completed toString(). The helper may not be used after this method is called.
override

Operators

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

Static Properties

creator ↔ (ClassToString Function(String className, [Iterable<Type> types])?)
Override this method to change the way a class's toString is generated
getter/setter pair