Skip to content

Glossary: Dart Basics

factory constructor

Also written: factory

A constructor marked factory that returns an object instead of just filling in fields. It's an alternative way to write fromJson.

Where the book teaches it

Related terms

constructorfromJson