diff --git a/lib/web_ui/lib/src/engine/compositor/path.dart b/lib/web_ui/lib/src/engine/compositor/path.dart index 56d9883589823..b8b17190cf2a8 100644 --- a/lib/web_ui/lib/src/engine/compositor/path.dart +++ b/lib/web_ui/lib/src/engine/compositor/path.dart @@ -15,9 +15,9 @@ class SkPath implements ui.Path { fillType = ui.PathFillType.nonZero; } - // TODO(yjbanov): implement: https://github.com/flutter/flutter/issues/46812 SkPath.from(SkPath other) { - throw UnimplementedError('SkPath.from is not implemented in the CanvasKit backend'); + _skPath = js.JsObject(canvasKit['SkPath'], [other._skPath]); + fillType = other.fillType; } SkPath._fromSkPath(js.JsObject skPath) : _skPath = skPath;