Skip to content

Document @mustBeOverridden contract to make more clear #55550

@matanlurey

Description

@matanlurey
import 'package:meta/meta.dart';

class A {
  @mustBeOverridden
  void a() {}
}

class B {
  @override
  void a() => super.a();
}

I can't win in this scenario, either I get a unnecessary_overrides lint or a must_be_overridden hint.

Metadata

Metadata

Assignees

Labels

P3A lower priority bug or feature requestlegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions