Skip to content

[S1161] Add missing @Override to overriding and implementing methods #48345

@Pankraz76

Description

@Pankraz76

@Override should be used on overriding members

While not mandatory, using the @Override annotation on compliant members (methods, properties, operators) improves readability by making it explicit that members are overridden.

Unlike other languages, all methods in Dart are virtual by default. So, using the @Override annotation prevents accidental overriding of a base class method in a subclass.

Implementation ideas

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/housekeepingIssue type for generalized tasks not related to bugs or enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions