transform method
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:
- PreviewBuilder, a utility for building and modifying Previews.
Implementation
@mustCallSuper
List<Preview> transform() => previews.map((Preview e) => e.transform()).toList();