SimpleAnimation constructor Null safety

SimpleAnimation(
  1. String animationName,
  2. {double mix = 1}
)

Implementation

SimpleAnimation(this.animationName, {double mix = 1})
    : _mix = mix.clamp(0, 1).toDouble();