AnimatedShape constructor
AnimatedShape({
- required Widget shape,
- ANIMATION_TYPE animationType = ANIMATION_TYPE.NONE,
- double animationValue = 1,
- Animation<
Offset> ? animationOffset, - 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);
}
}