copyWith method

StrokeOptions copyWith({
  1. double? size,
  2. double? thinning,
  3. double? smoothing,
  4. double? streamline,
  5. double easing(
    1. double
    )?,
  6. bool? simulatePressure,
  7. StrokeEndOptions? start,
  8. StrokeEndOptions? end,
  9. bool? isComplete,
})

Implementation

StrokeOptions copyWith({
  double? size,
  double? thinning,
  double? smoothing,
  double? streamline,
  double Function(double)? easing,
  bool? simulatePressure,
  StrokeEndOptions? start,
  StrokeEndOptions? end,
  bool? isComplete,
}) =>
    StrokeOptions(
      size: size ?? this.size,
      thinning: thinning ?? this.thinning,
      smoothing: smoothing ?? this.smoothing,
      streamline: streamline ?? this.streamline,
      easing: easing ?? this.easing,
      simulatePressure: simulatePressure ?? this.simulatePressure,
      start: start ?? this.start,
      end: end ?? this.end,
      isComplete: isComplete ?? this.isComplete,
    );