copyWith method

StreamChannelPreviewThemeData copyWith({
  1. TextStyle? titleStyle,
  2. TextStyle? subtitleStyle,
  3. TextStyle? lastMessageAtStyle,
  4. StreamAvatarThemeData? avatarTheme,
  5. Color? unreadCounterColor,
  6. double? indicatorIconSize,
})

Copy with theme

Implementation

StreamChannelPreviewThemeData copyWith({
  TextStyle? titleStyle,
  TextStyle? subtitleStyle,
  TextStyle? lastMessageAtStyle,
  StreamAvatarThemeData? avatarTheme,
  Color? unreadCounterColor,
  double? indicatorIconSize,
}) {
  return StreamChannelPreviewThemeData(
    titleStyle: titleStyle ?? this.titleStyle,
    subtitleStyle: subtitleStyle ?? this.subtitleStyle,
    lastMessageAtStyle: lastMessageAtStyle ?? this.lastMessageAtStyle,
    avatarTheme: avatarTheme ?? this.avatarTheme,
    unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
    indicatorIconSize: indicatorIconSize ?? this.indicatorIconSize,
  );
}