DartEmitter constructor Null safety

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 symbols, otherwise uses a no-op.

Implementation

DartEmitter(
    {this.allocator = Allocator.none,
    this.orderDirectives = false,
    bool useNullSafetySyntax = false})
    : _useNullSafetySyntax = useNullSafetySyntax;