DartEmitter constructor

DartEmitter({
  1. Allocator allocator = Allocator.none,
  2. bool orderDirectives = false,
  3. bool useNullSafetySyntax = false,
})

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;