copyWith method

StreamUserAvatarThemeData copyWith({
  1. BoxConstraints? constraints,
  2. BorderRadius? borderRadius,
  3. TextStyle? initialsTextStyle,
  4. Color? initialsBackground,
  5. Color? selectionColor,
  6. 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,
  );
}