wrapAll static method

List<RepaintBoundaryModifier> wrapAll(
  1. List<Widget> widgets
)

Wraps each of the given children in RepaintBoundarys.

The key for each RepaintBoundary is derived either from the wrapped child's key (if the wrapped child has a non-null key) or from the wrapped child's index in the list.

Implementation

static List<RepaintBoundaryModifier> wrapAll(List<Widget> widgets) => <RepaintBoundaryModifier>[
      for (int i = 0; i < widgets.length; ++i) RepaintBoundaryModifier.wrap(widgets[i], i),
    ];