copyWith method
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,
);
}