Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit authored Jul 25, 2023
1 parent d40c49a commit dd4f082
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/riverpod_lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,26 +564,15 @@ class _MyWidgetState extends ConsumerState<MyWidget> {
**Bad**:

```dart
class MyWidget extends ConsumerStatefulWidget {
const MyWidget({super.key});
@override
ConsumerState<ConsumerStatefulWidget> createState() => _MyWidgetState();
}
class _MyWidgetState extends ConsumerState<MyWidget> {
@override
void dispose() {
// Do not use 'ref' in the dispose method
ref.read(provider).doSomething();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Container();
}
// ...
}
```

Expand Down

0 comments on commit dd4f082

Please sign in to comment.