CodeBuilder class

Constructors

CodeBuilder.new({DartEmitter? emitter, DartFormatter? formatter, int indent = 0})

Properties

emitter → DartEmitter
final
formatter → DartFormatter
final
hashCode int
The hash code for this object.
no setterinherited
indent int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

block(String block, void build(CodeBuilder builder)) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
write(dynamic any) CodeBuilder

Operators

operator +(dynamic any) CodeBuilder
operator ==(Object other) bool
The equality operator.
inherited

Static Methods

build(void builder(CodeBuilder builder), {DartEmitter? emitter, DartFormatter? formatter, int indent = 0}) → Code
lines(List lines, {DartEmitter? emitter, DartFormatter? formatter, int indent = 0}) → Code