unecessary new

This commit is contained in:
Renan Araujo
2019-03-22 13:20:18 -03:00
parent b23c316def
commit e7ac8ed094
13 changed files with 73 additions and 73 deletions

View File

@ -56,7 +56,7 @@ mixin ComposedComponent on Component {
}
void add(Component c) {
this.components.add(c);
components.add(c);
if (this is Resizable) {
// first time resize
@ -68,5 +68,5 @@ mixin ComposedComponent on Component {
}
List<Resizable> children() =>
this.components.where((r) => r is Resizable).cast<Resizable>().toList();
components.where((r) => r is Resizable).cast<Resizable>().toList();
}