copyWith method

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

Copy with theme

Implementation

ChannelPreviewThemeData copyWith({
  TextStyle? titleStyle,
  TextStyle? subtitleStyle,
  TextStyle? lastMessageAtStyle,
  AvatarThemeData? avatarTheme,
  Color? unreadCounterColor,
  double? indicatorIconSize,
}) =>
    ChannelPreviewThemeData(
      titleStyle: titleStyle ?? this.titleStyle,
      subtitleStyle: subtitleStyle ?? this.subtitleStyle,
      lastMessageAtStyle: lastMessageAtStyle ?? this.lastMessageAtStyle,
      avatarTheme: avatarTheme ?? this.avatarTheme,
      unreadCounterColor: unreadCounterColor ?? this.unreadCounterColor,
      indicatorIconSize: indicatorIconSize ?? this.indicatorIconSize,
    );