@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.
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.