17
7
DO call super.dispose() at the end of the dispose method.
super.dispose()
dispose
@override void dispose() { super.dispose(); _dispose(); }
@override void dispose() { _dispose(); super.dispose(); }
To enable the proper_super_dispose rule, add proper_super_dispose under plugins > pyramid_lint > diagnostics in your analysis_options.yaml file:
proper_super_dispose
plugins > pyramid_lint > diagnostics
analysis_options.yaml
plugins: pyramid_lint: <version> diagnostics: proper_super_dispose: true