HeroController constructor

HeroController({CreateRectTween createRectTween })

Creates a hero controller with the given RectTween constructor if any.

The createRectTween argument is optional. If null, the controller uses a linear Tween<Rect>.

Implementation

HeroController({ this.createRectTween });