Unverified Commit 5613ab01 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

remove unnecessary parens (#119736)

parent 1573c129
...@@ -3075,15 +3075,15 @@ void main() { ...@@ -3075,15 +3075,15 @@ void main() {
void verifyAutocorrectionRectVisibility({ required bool expectVisible }) { void verifyAutocorrectionRectVisibility({ required bool expectVisible }) {
PaintPattern evaluate() { PaintPattern evaluate() {
if (expectVisible) { if (expectVisible) {
return paints..something(((Symbol method, List<dynamic> arguments) { return paints..something((Symbol method, List<dynamic> arguments) {
if (method != #drawRect) { if (method != #drawRect) {
return false; return false;
} }
final Paint paint = arguments[1] as Paint; final Paint paint = arguments[1] as Paint;
return paint.color == rectColor; return paint.color == rectColor;
})); });
} else { } else {
return paints..everything(((Symbol method, List<dynamic> arguments) { return paints..everything((Symbol method, List<dynamic> arguments) {
if (method != #drawRect) { if (method != #drawRect) {
return true; return true;
} }
...@@ -3092,7 +3092,7 @@ void main() { ...@@ -3092,7 +3092,7 @@ void main() {
return true; return true;
} }
throw 'Expected: autocorrection rect not visible, found: ${arguments[0]}'; throw 'Expected: autocorrection rect not visible, found: ${arguments[0]}';
})); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment