Navaron Bracke

put constructor first

@@ -118,16 +118,16 @@ void main() { @@ -118,16 +118,16 @@ void main() {
118 } 118 }
119 119
120 class ScanWindowTestContext { 120 class ScanWindowTestContext {
121 - final Size textureSize;  
122 - final Size widgetSize;  
123 - final Rect scanWindow;  
124 -  
125 ScanWindowTestContext({ 121 ScanWindowTestContext({
126 required this.textureSize, 122 required this.textureSize,
127 required this.widgetSize, 123 required this.widgetSize,
128 required this.scanWindow, 124 required this.scanWindow,
129 }); 125 });
130 126
  127 + final Size textureSize;
  128 + final Size widgetSize;
  129 + final Rect scanWindow;
  130 +
131 void testScanWindow(BoxFit fit, Rect expected) { 131 void testScanWindow(BoxFit fit, Rect expected) {
132 final actual = calculateScanWindowRelativeToTextureInPercentage( 132 final actual = calculateScanWindowRelativeToTextureInPercentage(
133 fit, 133 fit,