AnimatedShape constructor

AnimatedShape({
  1. required Widget shape,
  2. ANIMATION_TYPE animationType = ANIMATION_TYPE.NONE,
  3. double animationValue = 1,
  4. Animation<Offset>? animationOffset,
  5. AnimationController? animationController,
})

Implementation

AnimatedShape(
    {required this.shape,
    this.animationType = ANIMATION_TYPE.NONE,
    this.animationValue = 1,
    this.animationOffset,
    this.animationController}) {
  if (this.animationType == ANIMATION_TYPE.SLIDE_VERTICALLY) {
    assert(this.animationOffset != null);
  } else if (this.animationType == ANIMATION_TYPE.ROTATE) {
    assert(this.animationController != null);
  }
}