copyWith method

ThemeSettings copyWith({
  1. BuiltInTheme? baseTheme,
  2. int? accentColor,
  3. Background? background,
  4. BackgroundFill? outgoingMessageFill,
  5. bool? animateOutgoingMessageFill,
  6. int? outgoingMessageAccentColor,
})

Implementation

ThemeSettings copyWith({
  BuiltInTheme? baseTheme,
  int? accentColor,
  Background? background,
  BackgroundFill? outgoingMessageFill,
  bool? animateOutgoingMessageFill,
  int? outgoingMessageAccentColor,
}) => ThemeSettings(
  baseTheme: baseTheme ?? this.baseTheme,
  accentColor: accentColor ?? this.accentColor,
  background: background ?? this.background,
  outgoingMessageFill: outgoingMessageFill ?? this.outgoingMessageFill,
  animateOutgoingMessageFill:
      animateOutgoingMessageFill ?? this.animateOutgoingMessageFill,
  outgoingMessageAccentColor:
      outgoingMessageAccentColor ?? this.outgoingMessageAccentColor,
);