parseRectangles method

ViewerElement<List<Rectangle<num>>>? parseRectangles(
  1. dynamic node
)

Implementation

ViewerElement<List<Rectangle<num>>>? parseRectangles(node) {
  return _parseViewerElement(node, ['rectangles', 'rects'],
      constructorValue: CanvasImageViewer.rectanglesViewerElement,
      mapperList: ((list) =>
          list.map(parseRectangle).toList() as List<Rectangle<num>>));
}