dart-lang / code_builder

A fluent API for generating valid Dart source code
https://pub.dev/packages/code_builder
BSD 3-Clause "New" or "Revised" License
427 stars 66 forks source link

switch the orderDirectives and useNullSafetySyntax defaults for DartEmitter? #386

Open devoncarew opened 1 year ago

devoncarew commented 1 year ago

We may want to switch the orderDirectives and useNullSafetySyntax defaults for DartEmitter; they both currently default to false.

https://github.com/dart-lang/code_builder/blob/master/lib/src/emitter.dart#L78

btrautmann commented 1 year ago

I agree! Just got caught by this myself 😄