transform method

  1. @mustCallSuper
List<Preview> transform()

Applies a transformation to each Preview in previews.

Overriding this method allows for MultiPreview implementations to initialize more complicated previews that would not otherwise be possible due to restrictions around constant constructors used for annotations.

See also:

Implementation

@mustCallSuper
List<Preview> transform() => previews.map((Preview e) => e.transform()).toList();