diff --git a/test/components/component_test.dart b/test/components/component_test.dart index 651906479..f0ad773dd 100644 --- a/test/components/component_test.dart +++ b/test/components/component_test.dart @@ -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);