DartEmitter constructor
DartEmitter({})
Creates a new instance of DartEmitter.
May specify an Allocator to use for references and imports, otherwise uses Allocator.none which never prefixes references and will not automatically emit import directives.
Implementation
DartEmitter(
{this.allocator = Allocator.none,
this.orderDirectives = false,
bool useNullSafetySyntax = false})
: _useNullSafetySyntax = useNullSafetySyntax;