fixing warnings and nits on the tests

This commit is contained in:
Luan Nico
2019-10-14 17:15:56 -04:00
parent 15955e7d28
commit e129e7f8c1

View File

@ -41,7 +41,7 @@ void main() {
expect(c.toRect().width, 2.0);
expect(c.toRect().height, 2.0);
c.setByRect(Rect.fromLTWH(10.0, 10.0, 1.0, 1.0));
c.setByRect(const Rect.fromLTWH(10.0, 10.0, 1.0, 1.0));
expect(c.x, 10.0);
expect(c.y, 10.0);
expect(c.width, 1.0);