PathAnimation constructor

const PathAnimation({
  1. Key? key,
  2. required Widget child,
  3. required Path path,
  4. Duration duration = const Duration(seconds: 3),
  5. bool reversePath = false,
  6. PathDirection direction = PathDirection.forward,
})

The direction of the path animation. Constructor for the PathAnimation widget.

Implementation

/// Constructor for the PathAnimation widget.
const PathAnimation({
  Key? key,
  required this.child,
  required this.path,
  this.duration = const Duration(seconds: 3),
  this.reversePath = false,
  this.direction = PathDirection.forward,
}) : super(key: key);