clipViewerElement static method

ViewerElement<Rectangle<num>> clipViewerElement(
  1. Rectangle<num>? clip, [
  2. Color? color
])

Implementation

static ViewerElement<Rectangle<num>> clipViewerElement(Rectangle<num>? clip,
    [Color? color]) {
  return ViewerElement<Rectangle<num>>(clip, color,
      valueCopier: (v) => v == null
          ? null
          : Rectangle<num>(v.left, v.top, v.width, v.height));
}