mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
commit
260f006eff
@ -7,16 +7,16 @@ class _PhysicsCollisionGroups {
|
||||
getBitmaskForKeys(["Default"]);
|
||||
}
|
||||
|
||||
Map<Object,int> keyLookup = {};
|
||||
Map<Object,int> keyLookup = <Object,int>{};
|
||||
|
||||
List<Object> getKeysForBitmask(int bitmask) {
|
||||
List<Object> keys = [];
|
||||
keyLookup.forEach((key, value) {
|
||||
if (value & bitmask) {
|
||||
keyLookup.forEach((Object key, int value) {
|
||||
if (value & bitmask != null) {
|
||||
keys.add(key);
|
||||
}
|
||||
});
|
||||
return key;
|
||||
return keys;
|
||||
}
|
||||
|
||||
int getBitmaskForKeys(List<Object> keys) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user