-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
area/housekeepingIssue type for generalized tasks not related to bugs or enhancementsIssue type for generalized tasks not related to bugs or enhancements
Description
@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.
- https://sonarsource.github.io/rspec/#/rspec/S1161
- https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why/94411#94411
Implementation ideas
Metadata
Metadata
Assignees
Labels
area/housekeepingIssue type for generalized tasks not related to bugs or enhancementsIssue type for generalized tasks not related to bugs or enhancements