Skip to content

Glossary: Dart Basics

constructor

Also written: constructors

The code that creates an object and sets its fields, like MenuItem(this.code, this.name, this.cents).

Where the book teaches it

Related terms

classnamed constructorobject