build1 publisher
Storing PdfDocument.new in a Dart enum member deletes the factory switch ladder
Dart's enhanced enums and constructor tearoffs let each member carry the constructor it builds, so adding a case is one line in one file, as long as every target constructor takes exactly the same arguments.
Publishers:dev.to
Reality
- Evidence58
- Adoption
- Insufficient
- Hype gap+28
- Incentives22
- Confidence64