Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

package:code_builder v4.5.0

Compare
Choose a tag to compare
@natebosch natebosch released this 01 Jun 04:02
· 30 commits to master since this release
b07f6b3
  • Require Dart 2.19
  • Add support for emitting type parameters for typedefs.
  • Add support for class modifiers.
  • Add support for records (both types and record literals).
  • Add literalSpread and literalNullSafeSpread to support adding spreads to
    literalMap.
void main() {
  // Creates a map
  // {
  //   ...one,
  //   2: two,
  //   ...?three,
  // }
  final map = literalMap({
    literalSpread(): refer('one'),
    2: refer('two'),
    literalNullSafeSpread(): refer('three'),
  });
}