copyWith method

  1. @override
HatangChatTheme copyWith({
  1. Brightness? brightness,
  2. HatangPalette? palette,
  3. Color? accent,
  4. Color? onAccent,
  5. String? fontFamily,
  6. double? bubbleRadius,
  7. Color? mineBubble,
  8. Color? onMineBubble,
  9. Color? theirBubble,
  10. Color? onTheirBubble,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
HatangChatTheme copyWith({
  Brightness? brightness,
  HatangPalette? palette,
  Color? accent,
  Color? onAccent,
  String? fontFamily,
  double? bubbleRadius,
  Color? mineBubble,
  Color? onMineBubble,
  Color? theirBubble,
  Color? onTheirBubble,
}) => HatangChatTheme(
  brightness: brightness ?? this.brightness,
  palette: palette ?? this.palette,
  accent: accent ?? this.accent,
  onAccent: onAccent ?? this.onAccent,
  fontFamily: fontFamily ?? this.fontFamily,
  bubbleRadius: bubbleRadius ?? this.bubbleRadius,
  mineBubble: mineBubble ?? this.mineBubble,
  onMineBubble: onMineBubble ?? this.onMineBubble,
  theirBubble: theirBubble ?? this.theirBubble,
  onTheirBubble: onTheirBubble ?? this.onTheirBubble,
);