Skip to content

Commit 36bbac9

Browse files
committed
Merge pull request #665 from keertip/implementors
fix showing duplicate implementors
2 parents 6f9fdb3 + 8d55dff commit 36bbac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void _addToImplementors(Class c) {
2525
_implementors.putIfAbsent(key, () => []);
2626
List list = _implementors[key];
2727

28-
if (!list.contains(implClass)) {
28+
if (!list.any((l) => l.element == c.element)) {
2929
list.add(implClass);
3030
}
3131
}

0 commit comments

Comments
 (0)