factory Path2D([path_OR_text]) { if (path_OR_text == null) { return Path2D._create_1(); } if ((path_OR_text is Path2D)) { return Path2D._create_2(path_OR_text); } if ((path_OR_text is String)) { return Path2D._create_3(path_OR_text); } throw new ArgumentError("Incorrect number or type of arguments"); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/Path2D/Path2D.html