From 0535e4b0db7d8ccdc83b6725e9a9097aa0562e0b Mon Sep 17 00:00:00 2001 From: Yegor Date: Thu, 6 Aug 2020 14:03:52 -0700 Subject: [PATCH] remove leftover temp annotation from pre-null safe world (flutter/engine#20234) Co-authored-by: David Iglesias --- engine/src/flutter/lib/ui/compositing.dart | 12 ++++++------ engine/src/flutter/lib/ui/geometry.dart | 2 +- engine/src/flutter/lib/ui/painting.dart | 4 ++-- .../src/flutter/lib/web_ui/lib/src/ui/painting.dart | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/engine/src/flutter/lib/ui/compositing.dart b/engine/src/flutter/lib/ui/compositing.dart index 4f8332f6ef..39b0d63fc2 100644 --- a/engine/src/flutter/lib/ui/compositing.dart +++ b/engine/src/flutter/lib/ui/compositing.dart @@ -699,12 +699,12 @@ class SceneBuilder extends NativeFieldWrapperClass2 { /// texture just before resizing the Android view and un-freezes it when it is /// certain that a frame with the new size is ready. void addTexture( - int/*!*/ textureId, { - Offset/*!*/ offset = Offset.zero, - double/*!*/ width = 0.0, - double/*!*/ height = 0.0, - bool/*!*/ freeze = false, - FilterQuality/*!*/ filterQuality = FilterQuality.low, + int textureId, { + Offset offset = Offset.zero, + double width = 0.0, + double height = 0.0, + bool freeze = false, + FilterQuality filterQuality = FilterQuality.low, }) { assert(offset != null, 'Offset argument was null'); // ignore: unnecessary_null_comparison _addTexture(offset.dx, offset.dy, width, height, textureId, freeze, filterQuality.index); diff --git a/engine/src/flutter/lib/ui/geometry.dart b/engine/src/flutter/lib/ui/geometry.dart index a7404996cd..23829b3efa 100644 --- a/engine/src/flutter/lib/ui/geometry.dart +++ b/engine/src/flutter/lib/ui/geometry.dart @@ -656,7 +656,7 @@ class Rect { /// Constructs a rectangle from its center point, width, and height. /// /// The `center` argument is assumed to be an offset from the origin. - Rect.fromCenter({ required Offset center/*!*/, required double width, required double height }) : this.fromLTRB( + Rect.fromCenter({ required Offset center, required double width, required double height }) : this.fromLTRB( center.dx - width / 2, center.dy - height / 2, center.dx + width / 2, diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index c755852376..449d11c171 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -3191,8 +3191,8 @@ class Gradient extends Shader { List colors, [ List? colorStops, TileMode tileMode = TileMode.clamp, - double startAngle/*?*/ = 0.0, - double endAngle/*!*/ = math.pi * 2, + double startAngle = 0.0, + double endAngle = math.pi * 2, Float64List? matrix4, ]) : assert(_offsetIsValid(center)), assert(colors != null), // ignore: unnecessary_null_comparison diff --git a/engine/src/flutter/lib/web_ui/lib/src/ui/painting.dart b/engine/src/flutter/lib/web_ui/lib/src/ui/painting.dart index ecfc7a1a84..44fd581c38 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/ui/painting.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/ui/painting.dart @@ -1186,8 +1186,8 @@ abstract class Gradient extends Shader { List colors, [ List? colorStops, TileMode tileMode = TileMode.clamp, - double startAngle /*?*/ = 0.0, - double endAngle /*!*/ = math.pi * 2, + double startAngle = 0.0, + double endAngle = math.pi * 2, Float64List? matrix4, ]) => engine.GradientSweep(center, colors, colorStops, tileMode, startAngle,