followPath method

T followPath({
  1. Duration? delay,
  2. Duration? duration,
  3. Curve? curve,
  4. double? begin,
  5. double? end,
  6. required dynamic path,
  7. bool? rotate,
  8. double? rotationOffset,
  9. bool? transformHitTests,
})

Adds a FollowPathEffect that moves the target following the specified path (via Transform). The path coordinates are relative to the target's nominal position.

Implementation

T followPath({
  Duration? delay,
  Duration? duration,
  Curve? curve,
  double? begin,
  double? end,
  required path,
  bool? rotate,
  double? rotationOffset,
  bool? transformHitTests,
}) =>
    addEffect(FollowPathEffect(
      delay: delay,
      duration: duration,
      curve: curve,
      begin: begin,
      end: end,
      path: path,
      rotate: rotate,
      rotationOffset: rotationOffset,
      transformHitTests: transformHitTests,
    ));