copyWith method
Creates a copy of this theme with the specified properties replaced.
Implementation
GridTheme copyWith({
Color? color,
double? size,
double? thickness,
GridStyle? style,
}) {
return GridTheme(
color: color ?? this.color,
size: size ?? this.size,
thickness: thickness ?? this.thickness,
style: style ?? this.style,
);
}