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