Skip to content

Glossary: Dart Basics

extension

Also written: extensions

Adds methods or getters to a type you didn't write, even int. Inside it, `this` is the value it's called on, as in 475.money.

Where the book teaches it

Related terms

gettermethod