未验证 提交 9dac7148 编写于 作者: J Jonah Williams 提交者: GitHub

[null-safety] fix real type failures in web engine (#20010)

remove extra null checks
上级 3596b9b8
......@@ -13,7 +13,7 @@ class CkPathMetrics extends IterableBase<ui.PathMetric>
/// The [CkPath.isEmpty] case is special-cased to avoid booting the WASM machinery just to find out there are no contours.
@override
Iterator<ui.PathMetric> get iterator => _path.isEmpty! ? const CkPathMetricIteratorEmpty._() : CkContourMeasureIter(_path, _forceClosed);
Iterator<ui.PathMetric> get iterator => _path.isEmpty ? const CkPathMetricIteratorEmpty._() : CkContourMeasureIter(_path, _forceClosed);
}
class CkContourMeasureIter implements Iterator<ui.PathMetric> {
......
......@@ -160,7 +160,7 @@ class Surface {
return _makeSoftwareCanvasSurface(htmlCanvas);
}
return CkSurface(skSurface!, _grContext, glContext);
return CkSurface(skSurface, _grContext, glContext);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册