# proper_super_dispose

| Severity | Quick Fix | Options |
|:--------:|:---------:|:-------:|
|  Error   |    ✅     |   ❌    |

## Details

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

```dart title="Bad"
@override
void dispose() {
  super.dispose();
  _dispose();
}
```

```dart title="Good"
@override
void dispose() {
  _dispose();
  super.dispose();
}
```

## Usage

To enable the `proper_super_dispose` rule, add `proper_super_dispose` under `plugins > pyramid_lint > diagnostics` in your `analysis_options.yaml` file:

```yaml
plugins:
  pyramid_lint: <version>
    diagnostics:
      proper_super_dispose: true
```
