formatting

This commit is contained in:
Luan Nico
2019-09-21 13:04:02 -04:00
parent e2622cde41
commit 11a479cf24
5 changed files with 15 additions and 16 deletions

View File

@ -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();
}