code_builder
code_builder copied to clipboard
How to use the new added `Expression.spread` and `Expression.nullSafeSpread` api?
I'm trying to use these two apis to build a map statement code with some key-value literals and other map references, but have no idea how to use them with literalMap?
I don't think you can include a spread in a Map created from mapLiteral.
@natebosch this should be fixed now
Fixed in https://github.com/dart-lang/code_builder/pull/400
Thanks @donny-dont !