Navaron Bracke

format

@@ -22,7 +22,10 @@ void main() { @@ -22,7 +22,10 @@ void main() {
22 const int outOfRange = 3; 22 const int outOfRange = 3;
23 23
24 expect(() => DetectionSpeed.fromRawValue(negative), throwsArgumentError); 24 expect(() => DetectionSpeed.fromRawValue(negative), throwsArgumentError);
25 - expect(() => DetectionSpeed.fromRawValue(outOfRange), throwsArgumentError); 25 + expect(
  26 + () => DetectionSpeed.fromRawValue(outOfRange),
  27 + throwsArgumentError,
  28 + );
26 }); 29 });
27 30
28 test('can be converted to raw value', () { 31 test('can be converted to raw value', () {
@@ -23,7 +23,10 @@ void main() { @@ -23,7 +23,10 @@ void main() {
23 const int outOfRange = 4; 23 const int outOfRange = 4;
24 24
25 expect(() => EncryptionType.fromRawValue(negative), throwsArgumentError); 25 expect(() => EncryptionType.fromRawValue(negative), throwsArgumentError);
26 - expect(() => EncryptionType.fromRawValue(outOfRange), throwsArgumentError); 26 + expect(
  27 + () => EncryptionType.fromRawValue(outOfRange),
  28 + throwsArgumentError,
  29 + );
27 }); 30 });
28 31
29 test('can be converted to raw value', () { 32 test('can be converted to raw value', () {
@@ -11,7 +11,9 @@ void main() { @@ -11,7 +11,9 @@ void main() {
11 }; 11 };
12 12
13 for (final MapEntry<int, MobileScannerState> entry in values.entries) { 13 for (final MapEntry<int, MobileScannerState> entry in values.entries) {
14 - final MobileScannerState result = MobileScannerState.fromRawValue(entry.key); 14 + final MobileScannerState result = MobileScannerState.fromRawValue(
  15 + entry.key,
  16 + );
15 17
16 expect(result, entry.value); 18 expect(result, entry.value);
17 } 19 }
@@ -21,8 +23,14 @@ void main() { @@ -21,8 +23,14 @@ void main() {
21 const int negative = -1; 23 const int negative = -1;
22 const int outOfRange = 3; 24 const int outOfRange = 3;
23 25
24 - expect(() => MobileScannerState.fromRawValue(negative), throwsArgumentError);  
25 - expect(() => MobileScannerState.fromRawValue(outOfRange), throwsArgumentError); 26 + expect(
  27 + () => MobileScannerState.fromRawValue(negative),
  28 + throwsArgumentError,
  29 + );
  30 + expect(
  31 + () => MobileScannerState.fromRawValue(outOfRange),
  32 + throwsArgumentError,
  33 + );
26 }); 34 });
27 35
28 test('can be converted to raw value', () { 36 test('can be converted to raw value', () {