apply abstract method

Widget apply(
  1. BuildContext context,
  2. Widget child
)

Applies this Effect to given child. This is called by Effect builder widgets to apply the effect to given child.

Returns a Widget with the effect applied. lerp is called before apply to interpolate between two Effects. apply is then called on the resulting Effect from lerp.

Check out ScaleEffect.apply for an example of how to implement this method.

Implementation

Widget apply(BuildContext context, Widget child);