init method

  1. @override
void init(
  1. AnimationController controller
)
override

Implementation

@override
void init(AnimationController controller) {
  controller.value = notifier.value;
  notifier.addListener(() {
    controller.animateTo(
      notifier.value,
      duration: animated ? null : Duration.zero,
    );
  });
}