Animation constructor

const Animation({
  1. AnimationType type = AnimationType.Linear,
  2. double duration = 0.0,
})

Implementation

const Animation({
  this.type = AnimationType.Linear,
  this.duration = 0.0,
});