proper_super_dispose

SeverityQuick FixOptions
Error

Details

DO call super.dispose() at the end of the dispose method.

Bad
@override
void dispose() {
  super.dispose();
  _dispose();
}
Good
@override
void dispose() {
  _dispose();
  super.dispose();
}

Usage

To enable the proper_super_dispose rule, add proper_super_dispose under custom_lint > rules in your analysis_options.yaml file:

custom_lint:
  rules:
    - proper_super_dispose