copyWith method

ChatTheme copyWith({
  1. String? name,
  2. ThemeSettings? lightSettings,
  3. ThemeSettings? darkSettings,
})

Implementation

ChatTheme copyWith({
  String? name,
  ThemeSettings? lightSettings,
  ThemeSettings? darkSettings,
}) => ChatTheme(
  name: name ?? this.name,
  lightSettings: lightSettings ?? this.lightSettings,
  darkSettings: darkSettings ?? this.darkSettings,
);