loadSVGFromURL function

  1. @JS('fabric.loadSVGFromURL')
void loadSVGFromURL(
  1. String url,
  2. void callback(
    1. List results,
    2. dynamic options,
    3. dynamic elements,
    4. dynamic allElements,
    ), [
  3. Function reviver,
  4. dynamic options,
])

Takes url corresponding to an SVG document, and parses it into a set of fabric objects. Note that SVG is fetched via XMLHttpRequest, so it needs to conform to SOP (Same Origin Policy) /void Function (List

Implementation

@JS('fabric.loadSVGFromURL')
external void loadSVGFromURL(
    String url,
    void Function(List<dynamic> results, dynamic options, dynamic elements,
            dynamic allElements)
        callback,
    [Function reviver,
    dynamic /*{ crossOrigin?: string | undefined }*/ options]);