copyWith method

ClayTextTheme copyWith({
  1. Color? color,
  2. Color? parentColor,
  3. Color? textColor,
  4. TextStyle? style,
  5. double? spread,
  6. int? depth,
  7. double? size,
  8. bool? emboss,
})

Implementation

ClayTextTheme copyWith({
  Color? color,
  Color? parentColor,
  Color? textColor,
  TextStyle? style,
  double? spread,
  int? depth,
  double? size,
  bool? emboss,
}) {
  return ClayTextTheme(
    color: color ?? this.color,
    parentColor: parentColor ?? this.parentColor,
    textColor: textColor ?? this.textColor,
    style: style ?? this.style,
    spread: spread ?? this.spread,
    depth: depth ?? this.depth,
    size: size ?? this.size,
    emboss: emboss ?? this.emboss,
  );
}