AnimatableParameter<T> constructor

AnimatableParameter<T>(
  1. T value, {
  2. required AnimatableParameterHost host,
})

Creates a wrapper around an animatable parameter of a widget that supports animating with Fleet.

Implementation

AnimatableParameter(T value, {required AnimatableParameterHost host})
    : _value = value,
      _animatedValue = value,
      _host = host {
  host.registerAnimatableParameter(this);
}