diff --git a/lib/ui/hooks.dart b/lib/ui/hooks.dart index 1888e1d575a77..b685f7280eaca 100644 --- a/lib/ui/hooks.dart +++ b/lib/ui/hooks.dart @@ -294,7 +294,8 @@ typedef _ListStringArgFunction = Object? Function(List args); void _runMain(Function startMainIsolateFunction, Function userMainFunction, List args) { - startMainIsolateFunction(() { // ignore: avoid_dynamic_calls + // ignore: avoid_dynamic_calls + startMainIsolateFunction(() { if (userMainFunction is _ListStringArgFunction) { userMainFunction(args); } else { diff --git a/lib/web_ui/lib/src/engine/services/message_codecs.dart b/lib/web_ui/lib/src/engine/services/message_codecs.dart index 5167563737dfb..70a70c39243da 100644 --- a/lib/web_ui/lib/src/engine/services/message_codecs.dart +++ b/lib/web_ui/lib/src/engine/services/message_codecs.dart @@ -310,7 +310,8 @@ class StandardMessageCodec implements MessageCodec { } else if (value is double) { buffer.putUint8(_valueFloat64); buffer.putFloat64(value); - } else if (value is int) { // ignore: avoid_double_and_int_checks + // ignore: avoid_double_and_int_checks + } else if (value is int) { if (-0x7fffffff - 1 <= value && value <= 0x7fffffff) { buffer.putUint8(_valueInt32); buffer.putInt32(value); diff --git a/lib/web_ui/test/engine/view/view_constraints_test.dart b/lib/web_ui/test/engine/view/view_constraints_test.dart index 3ea1c09517ed5..e9039ac6cc8b8 100644 --- a/lib/web_ui/test/engine/view/view_constraints_test.dart +++ b/lib/web_ui/test/engine/view/view_constraints_test.dart @@ -145,10 +145,12 @@ Future testMain() async { expect( ViewConstraints.fromJs(constraints, size), const ViewConstraints( + minWidth: 500, // ignore: avoid_redundant_argument_values - minWidth: 500, maxWidth: double.infinity, + maxWidth: double.infinity, + minHeight: 300, // ignore: avoid_redundant_argument_values - minHeight: 300, maxHeight: double.infinity, + maxHeight: double.infinity, )); }); }); diff --git a/testing/dart/image_filter_test.dart b/testing/dart/image_filter_test.dart index 65e555fcb70c8..6216acb2c8fb5 100644 --- a/testing/dart/image_filter_test.dart +++ b/testing/dart/image_filter_test.dart @@ -92,7 +92,8 @@ void main() async { List colorFilters() { // Create new color filter instances on each invocation. - return [ // ignore: prefer_const_constructors + // ignore: prefer_const_constructors + return [ ColorFilter.mode(green, BlendMode.color), // ignore: prefer_const_constructors ColorFilter.mode(red, BlendMode.color), // ignore: prefer_const_constructors ColorFilter.mode(red, BlendMode.screen), // ignore: prefer_const_constructors diff --git a/testing/scenario_app/lib/src/platform_view.dart b/testing/scenario_app/lib/src/platform_view.dart index ce712b64385ad..2dc040da3c9c3 100644 --- a/testing/scenario_app/lib/src/platform_view.dart +++ b/testing/scenario_app/lib/src/platform_view.dart @@ -22,7 +22,8 @@ List _to64(num value) { final Uint8List temp = Uint8List(15); if (value is double) { temp.buffer.asByteData().setFloat64(7, value, Endian.little); - } else if (value is int) { // ignore: avoid_double_and_int_checks + // ignore: avoid_double_and_int_checks + } else if (value is int) { temp.buffer.asByteData().setInt64(7, value, Endian.little); } return temp; diff --git a/tools/const_finder/test/fixtures/lib/box.dart b/tools/const_finder/test/fixtures/lib/box.dart index bc467d14b0f39..51b2a5ed30ca6 100644 --- a/tools/const_finder/test/fixtures/lib/box.dart +++ b/tools/const_finder/test/fixtures/lib/box.dart @@ -217,7 +217,11 @@ const Box box2_98 = Box(box2_97, box2_97); const Box box2_99 = Box(box2_98, box2_98); Object confuse(Box x) { - try { throw x; } catch (e) { return e; } // ignore: only_throw_errors + try { + throw x; // ignore: only_throw_errors + } catch (e) { + return e; + } } void main() {