Skip to content

Glossary: Dart Basics

@override

Also written: override, overrides

An annotation placed above a method that replaces one the class inherited, such as Drink's own label() or a custom toString(). It lets Dart warn you if the name doesn't match anything to replace.

Where the book teaches it

Related terms

inheritancemethodtoString()