Skip to content

Commit

Permalink
Change AllDayEventLayoutInfo, BasicEvent to accept non-nullable Objec…
Browse files Browse the repository at this point in the history
…t in ==
  • Loading branch information
JonasWanke committed Jan 16, 2024
1 parent a97a4db commit d620c18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/event/all_day.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AllDayEventLayoutInfo {
@override
int get hashCode => Object.hash(hiddenStartDays, hiddenEndDays);
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return other is AllDayEventLayoutInfo &&
hiddenStartDays == other.hiddenStartDays &&
hiddenEndDays == other.hiddenEndDays;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/event/basic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class BasicEvent extends Event {
@override
int get hashCode => Object.hash(super.hashCode, title, backgroundColor);
@override
bool operator ==(dynamic other) =>
bool operator ==(Object other) =>
other is BasicEvent &&
super == other &&
title == other.title &&
Expand Down

0 comments on commit d620c18

Please sign in to comment.