PathAnimation constructor
PathAnimation({})
Implementation
PathAnimation({
super.key,
required this.child,
required this.path,
this.duration = const Duration(milliseconds: 1000),
this.repeat = false,
this.reverse = false,
this.curve = Curves.linear,
this.startAnimatedPercent = 0.0,
this.drawPath = false,
this.pathColor = Colors.blue,
this.pathWidth = 1.0,
}) : width = path.getBounds().width,
height = path.getBounds().height,
assert(
0.0 <= startAnimatedPercent && startAnimatedPercent <= 1.0,
'startAnimatedPercent must be between 0.0 and 1.0',
);