transform method
Applies a transformation to the current Preview.
Overriding this method allows for custom Preview 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
Preview transform() => this;