Skip to content

Commit

Permalink
Doc: Fix hashCode validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Willian199 committed Jan 21, 2024
1 parent 0a89358 commit a2eac48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/dart_ddi_event_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _DDIEventImpl implements DDIEvent {

final existingEvents = _events[effectiveQualifierName]!.cast<Event<T>>();
final isDuplicate = existingEvents
.any((existingEvent) => existingEvent.hashCode == event.hashCode);
.any((existingEvent) => existingEvent.event.hashCode == event.hashCode);

if (!isDuplicate) {
existingEvents.add(Event<T>(
Expand Down

0 comments on commit a2eac48

Please sign in to comment.