copyWith method

GridConfig copyWith({
  1. double? strokeWidth,
  2. Color? color,
  3. List<double>? dashPattern,
})

Creates a copy with modified values.

Implementation

GridConfig copyWith({
  double? strokeWidth,
  Color? color,
  List<double>? dashPattern,
}) {
  return GridConfig(
    strokeWidth: strokeWidth ?? this.strokeWidth,
    color: color ?? this.color,
    dashPattern: dashPattern ?? this.dashPattern,
  );
}