Emitter<T> class abstract

The Emitter is used to transform any object T into an output.

Every emitter defined receives a Context object from it's creator which contains rules which the Emitter must follow. An example of a rule is the use of trailling commas.

Implementers

Constructors

Emitter(Context context)
The Emitter is used to transform any object T into an output.
const

Properties

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

Methods

emit(T element, [StringSink? output]) StringSink
Emits element as valid Dart code into output.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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