initState method

  1. @override
void initState()
override

Called when the state is inserted into the tree.

Implementation

@override
void initState() {
  super.initState();
  _controller = createAnimationController(duration: widget.duration);
  _controller.addListener(() => setState(() {}));
  _constructTweens();
}