Closed CharlesCleveJr closed 6 years ago
As far as I know this is the intended behavior of SplayTreeMap
This sounds like a Dart SDK issue. If you still believe this should be changed, please file it at dart-lang/sdk. Thanks.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
When using a SplayTreeMap to map key/value pairs of a Firebase node, I've found that nodes with matching key/value pairs only return 1 node and omit all others. Here is the code I'm using...
DartPad Example
final sorted = new SplayTreeMap<String,dynamic>.from(map, (a, b) => map[b]['rank'].compareTo(map[a]['rank']));
Here are examples of the nodes I'm returning...
Is this an issue or am I using the wrong properties???