Skip to content

Commit 609538c

Browse files
committed
Library is now using flutter_lints.
1 parent d85efbf commit 609538c

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:lint/analysis_options_package.yaml
1+
include: package:flutter_lints/flutter.yaml
22

33
analyzer:
44
strong-mode:

lib/src/chewie_player.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,6 @@ class ChewieControllerProvider extends InheritedWidget {
625625
final ChewieController controller;
626626

627627
@override
628-
bool updateShouldNotify(ChewieControllerProvider old) =>
629-
controller != old.controller;
628+
bool updateShouldNotify(ChewieControllerProvider oldWidget) =>
629+
controller != oldWidget.controller;
630630
}

lib/src/models/subtitle_model.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ class Subtitle {
5050
}
5151

5252
@override
53-
bool operator ==(Object o) {
54-
if (identical(this, o)) return true;
53+
bool operator ==(Object other) {
54+
if (identical(this, other)) return true;
5555

56-
return o is Subtitle &&
57-
o.index == index &&
58-
o.start == start &&
59-
o.end == end &&
60-
o.text == text;
56+
return other is Subtitle &&
57+
other.index == index &&
58+
other.start == start &&
59+
other.end == end &&
60+
other.text == text;
6161
}
6262

6363
@override

pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ dependencies:
1818
dev_dependencies:
1919
flutter_test:
2020
sdk: flutter
21-
lint: ^1.8.2
22-
very_good_analysis: ^3.0.0
21+
flutter_lints: ^2.0.1
2322

2423
flutter:
2524
uses-material-design: true

0 commit comments

Comments
 (0)