copyWith method

ScriptStyle copyWith({
  1. double? scale,
  2. Color? color,
})

A copy with the given fields replaced.

Implementation

ScriptStyle copyWith({double? scale, Color? color}) {
  return ScriptStyle(scale: scale ?? this.scale, color: color ?? this.color);
}