copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ChatBackground copyWith({Background? background, int? darkThemeDimming}) =>
ChatBackground(
background: background ?? this.background,
darkThemeDimming: darkThemeDimming ?? this.darkThemeDimming,
);