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
423 stars 66 forks source link

Records are not supported #416

Closed yanok closed 1 year ago

yanok commented 1 year ago

AFAICT, there is no way to produce neither record types, nor record expressions, with the only option being the CodeExpression escape hatch. I'm going to try implementing it, filing the bug for the reference.