Are named constructors a subset of generative constructors in Dart? - Stack Overflow
[https://stackoverflow.com/questions/63313102/are-named-constructors-a-subset-of-generative-constructors-in-dart] - - public:mzimmerm
A good example of this use case in Dart is the abstract HTML Element class, which defines dozens of named factory constructor functions returning different subclasses. For example, Element.div() and Element.li() return and elements, respectively.