Implement Path.from in the CanvasKit backend (flutter/engine#14468)

This commit is contained in:
Harry Terkelsen 2020-01-08 11:19:39 -08:00 committed by GitHub
parent e1c106dc70
commit feb5125ef9

View File

@ -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'], <js.JsObject>[other._skPath]);
fillType = other.fillType;
}
SkPath._fromSkPath(js.JsObject skPath) : _skPath = skPath;