mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
formatting
This commit is contained in:
@ -76,13 +76,13 @@ mixin ComposedComponent on Component, HasGameRef, Tapeable {
|
||||
|
||||
// Finds all children of type T, recursively
|
||||
Iterable<T> _findT<T>() => components.expand((c) {
|
||||
final List<T> r = [];
|
||||
if (c is T) {
|
||||
r.add(c as T);
|
||||
}
|
||||
if (c is ComposedComponent) {
|
||||
r.addAll(c._findT<T>());
|
||||
}
|
||||
return r;
|
||||
}).cast();
|
||||
final List<T> r = [];
|
||||
if (c is T) {
|
||||
r.add(c as T);
|
||||
}
|
||||
if (c is ComposedComponent) {
|
||||
r.addAll(c._findT<T>());
|
||||
}
|
||||
return r;
|
||||
}).cast();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user