copyWith method

KeyStyleSpec copyWith({
  1. KeyStyleKind? kind,
  2. int? outlineWidthCdp,
  3. int? extrudeDepthCdp,
  4. int? shadowOffsetCdp,
  5. int? shadowBlurCdp,
  6. int? opacityPermille,
  7. int? edgeShadePermille,
  8. int? stateLayerPermille,
  9. int? frostPermille,
  10. int? highlightPermille,
  11. int? refractionPermille,
})

Implementation

KeyStyleSpec copyWith({
  KeyStyleKind? kind,
  int? outlineWidthCdp,
  int? extrudeDepthCdp,
  int? shadowOffsetCdp,
  int? shadowBlurCdp,
  int? opacityPermille,
  int? edgeShadePermille,
  int? stateLayerPermille,
  int? frostPermille,
  int? highlightPermille,
  int? refractionPermille,
}) => KeyStyleSpec(
  kind: kind ?? this.kind,
  outlineWidthCdp: outlineWidthCdp ?? this.outlineWidthCdp,
  extrudeDepthCdp: extrudeDepthCdp ?? this.extrudeDepthCdp,
  shadowOffsetCdp: shadowOffsetCdp ?? this.shadowOffsetCdp,
  shadowBlurCdp: shadowBlurCdp ?? this.shadowBlurCdp,
  opacityPermille: opacityPermille ?? this.opacityPermille,
  edgeShadePermille: edgeShadePermille ?? this.edgeShadePermille,
  stateLayerPermille: stateLayerPermille ?? this.stateLayerPermille,
  frostPermille: frostPermille ?? this.frostPermille,
  highlightPermille: highlightPermille ?? this.highlightPermille,
  refractionPermille: refractionPermille ?? this.refractionPermille,
);