Closed
Description
Simple example:
final a = LogicalKeySet(LogicalKeyboardKey.shiftLeft, LogicalKeyboardKey.arrowRight);
final b = LogicalKeySet(LogicalKeyboardKey.arrowRight, LogicalKeyboardKey.shiftLeft);
print(a == b); // true
print(a.hashCode == b.hashCode); // false
It appears that the Set literal's iteration order is influenced by insertion order. See use of hashList
in KeySet.hashCode
.