Unverified Commit 9a32f24a authored by Sam Rawlins's avatar Sam Rawlins Committed by GitHub

Fix prefer_null_aware_operators violation (#132242)

Use a null-aware `?.` operator instead of a conditional operator. This complies with the `prefer_null_aware_operators` rule. Fixes https://github.com/flutter/flutter/issues/132241

*If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
parent 3f831b69
......@@ -707,7 +707,7 @@ class RadialGradient extends Gradient {
radius * rect.shortestSide,
colors, _impliedStops(), tileMode,
_resolveTransform(rect, textDirection),
focal == null ? null : focal!.resolve(textDirection).withinRect(rect),
focal?.resolve(textDirection).withinRect(rect),
focalRadius * rect.shortestSide,
);
}
......
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