Skip to content

Commit

Permalink
Change dynamic to Object in operator of User
Browse files Browse the repository at this point in the history
  • Loading branch information
KhaledNjim committed Dec 13, 2024
1 parent e0b6529 commit 169433c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class User extends Event {
room.canChangePowerLevel && powerLevel < room.ownPowerLevel;

@override
bool operator ==(dynamic other) => (other is User &&
bool operator ==(Object other) => (other is User &&
other.id == id &&
other.room == room &&
other.membership == membership);
Expand Down

0 comments on commit 169433c

Please sign in to comment.