Path2D([path_OR_text ])

Source

@DomName('Path2D.Path2D')
@DocsEditable()
factory Path2D([path_OR_text]) {
  if (path_OR_text == null) {
    return _blink.BlinkPath2D.instance.constructorCallback_0_();
  }
  if ((path_OR_text is Path2D)) {
    return _blink.BlinkPath2D.instance.constructorCallback_1_(path_OR_text);
  }
  if ((path_OR_text is String)) {
    return _blink.BlinkPath2D.instance.constructorCallback_1_(path_OR_text);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}