SizeEffect.to constructor

SizeEffect.to(
  1. Vector2 targetSize,
  2. EffectController controller
)

This constructor will create an effect that sets the size to the absolute size that is defined by targetSize. For example if the targetSize is set to Vector2(200, 200) and the size of the affected component is Vector2(100, 100) at the start of the affected the effect will peak when the size is Vector2(200, 100), if there is nothing else affecting the size at the same time.

Implementation

factory SizeEffect.to(Vector2 targetSize, EffectController controller) =>
    _SizeToEffect(targetSize, controller);