PathAnimation constructor

PathAnimation({
  1. Key? key,
  2. required Widget child,
  3. required Path path,
  4. Duration duration = const Duration(milliseconds: 1000),
  5. bool repeat = false,
  6. bool reverse = false,
  7. Curve curve = Curves.linear,
  8. double startAnimatedPercent = 0.0,
  9. bool drawPath = false,
  10. Color pathColor = Colors.blue,
  11. double pathWidth = 1.0,
})

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',
      );