HeroController constructor Null safety

HeroController(
  1. {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 });