mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[null-safety] fix real type failures in web engine (flutter/engine#20010)
remove extra null checks
This commit is contained in:
parent
a71b077bc9
commit
b6aadb0406
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user