copyWith method
- Brightness? brightness,
- HatangPalette? palette,
- Color? accent,
- Color? onAccent,
- String? fontFamily,
- double? bubbleRadius,
- Color? mineBubble,
- Color? onMineBubble,
- Color? theirBubble,
- 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,
);