withChange method

VMobjectStyle withChange({
  1. List<Color>? fillColors,
  2. List<Color>? strokeColors,
  3. double? strokeWidth,
  4. List<Color>? backgroundStrokeColors,
  5. double? backgroundStrokeWidth,
})

Implementation

VMobjectStyle withChange({
  List<Color>? fillColors,
  List<Color>? strokeColors,
  double? strokeWidth,
  List<Color>? backgroundStrokeColors,
  double? backgroundStrokeWidth,
}) {
  var _fillColors = fillColors ?? this.fillColors;
  var _strokeColors = strokeColors ?? this.strokeColors;
  var _strokeWidth = strokeWidth ?? this.strokeWidth;
  var _backgroundStrokeColors =
      backgroundStrokeColors ?? this.backgroundStrokeColors;
  var _backgroundStrokeWidth =
      backgroundStrokeWidth ?? this.backgroundStrokeWidth;

  return VMobjectStyle(
    fillColors: _fillColors,
    strokeColors: _strokeColors,
    strokeWidth: _strokeWidth,
    backgroundStrokeColors: _backgroundStrokeColors,
    backgroundStrokeWidth: _backgroundStrokeWidth,
  );
}