Skip to content

Glossary: Dart Basics

this

Also written: this.

A keyword meaning the current object or value. In a constructor, this.code stores an argument in the field code; in an extension, this is the value it was called on.

Where the book teaches it

Related terms

constructorextensionfield