Last updated:
0 purchases
orchestrator
Easily define complex code structures in Dart using many out-of-the-box elements.
Usage #
Simple example of generating a class.
void main() {
final element = Method(
name: 'main',
body: const Static('print')
.invoke([Literal.of('Hello, World!')])
.statement,
);
const context = Context();
const emitter = ElementEmitter(context);
emitter.emit(element);
}
copied to clipboard
Results in:
void main() {
print('Hello, World!');
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.