copyWith method

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

Implementation

StrokeOptions copyWith({
  double? size,
  double? thinning,
  double? smoothing,
  double? streamline,
  NumericEasing? easing,
  bool? simulatePressure,
  TaperOptions? start,
  TaperOptions? end,
  bool? last,
}) {
  return 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,
    last: last ?? this.last,
  );
}