copyWith method

GridTheme copyWith({
  1. Color? color,
  2. double? size,
  3. double? thickness,
  4. GridStyle? style,
})

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