copyWith method
StreamUserAvatarThemeData
copyWith({
- BoxConstraints? constraints,
- BorderRadius? borderRadius,
- TextStyle? initialsTextStyle,
- Color? initialsBackground,
- Color? selectionColor,
- double? selectionThickness,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
StreamUserAvatarThemeData copyWith({
BoxConstraints? constraints,
BorderRadius? borderRadius,
TextStyle? initialsTextStyle,
Color? initialsBackground,
Color? selectionColor,
double? selectionThickness,
}) {
return StreamUserAvatarThemeData(
constraints: constraints ?? this.constraints,
borderRadius: borderRadius ?? this.borderRadius,
initialsTextStyle: initialsTextStyle ?? this.initialsTextStyle,
initialsBackground: initialsBackground ?? this.initialsBackground,
selectionColor: selectionColor ?? this.selectionColor,
selectionThickness: selectionThickness ?? this.selectionThickness,
);
}