Skip to content

Commit

Permalink
chore: Update code linter commands in unused_code_widget.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
nestorsgarzonc committed Sep 26, 2024
1 parent 111ea64 commit 6a8790f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/lib/src/unused_code_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import 'package:flutter/src/widgets/framework.dart';

/// This variable is not referenced in any file and is actually unused.
/// In order to spot such declarations,
/// run `dart rundart_code_linter:metrics check-unused-code lib`.
/// run `dart run dart_code_linter:metrics check-unused-code lib`.
const someVariable = '1';

/// This function is not referenced in any file and is actually unused.
/// In order to spot such declarations,
/// run `dart rundart_code_linter:metrics check-unused-code lib`.
/// run `dart run dart_code_linter:metrics check-unused-code lib`.
String topLevelFunction() {
print('Actually unused');

Expand Down

0 comments on commit 6a8790f

Please sign in to comment.