copyWith method

Line copyWith(
  1. {List<Point> points,
  2. Color color,
  3. double width,
  4. bool wipe,
  5. int duration}
)

Implementation

Line copyWith(
    {List<Point> points,
    Color color,
    double width,
    bool wipe,
    int duration}) {
  return Line(
    points: points ?? this.points.map((p) => new Point(p.x, p.y)).toList(),
    color: color ?? this.color,
    width: width ?? this.width,
    wipe: wipe ?? this.wipe,
    duration: duration ?? this.duration,
  );
}