Skip to content

Commit

Permalink
[visibility_detector] Fix example for dart 3.0.0 (#508)
Browse files Browse the repository at this point in the history
Fix the visibility_detector example to use `implements Comparable` instead of `extends Comparable` for Dart 3.0.
  • Loading branch information
BrianCraig authored Dec 15, 2023
1 parent 90a58a5 commit 494c6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/visibility_detector/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class VisibilityReportGridState extends State<VisibilityReportGrid> {
}

/// A class for storing a [row, column] pair.
class RowColumn extends Comparable<RowColumn> {
class RowColumn implements Comparable<RowColumn> {
RowColumn(this.row, this.column);

final int row;
Expand Down

0 comments on commit 494c6ab

Please sign in to comment.