transform method

  1. @mustCallSuper
Preview transform()

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:

Implementation

@mustCallSuper
Preview transform() => this;