DartEmitter.scoped constructor

DartEmitter.scoped({
  1. bool orderDirectives = false,
  2. bool useNullSafetySyntax = false,
})

Creates a new instance of DartEmitter with simple automatic imports.

Implementation

factory DartEmitter.scoped(
        {bool orderDirectives = false, bool useNullSafetySyntax = false}) =>
    DartEmitter(
        allocator: Allocator.simplePrefixing(),
        orderDirectives: orderDirectives,
        useNullSafetySyntax: useNullSafetySyntax);