copyWith method

  1. @override
VAvatarStyle copyWith({
  1. Color? splashColor,
  2. dynamic borderColor,
  3. dynamic backgroundColor,
  4. dynamic foregroundColor,
  5. dynamic verticalHighLightColor,
  6. double? borderRadius,
  7. dynamic radius,
  8. dynamic verticalAvatarBorderRadius,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
VAvatarStyle copyWith({
  Color? splashColor,
  borderColor,
  backgroundColor,
  foregroundColor,
  verticalHighLightColor,
  double? borderRadius,
  radius,
  verticalAvatarBorderRadius,
}) =>
    VAvatarStyle(
      splashColor: splashColor ?? this.splashColor,
      backgroundColor: backgroundColor ?? this.backgroundColor,
      borderColor: borderColor ?? this.borderColor,
      foregroundColor: foregroundColor ?? this.foregroundColor,
      borderRadius: borderRadius ?? this.borderRadius,
      verticalHighLightColor:
          verticalHighLightColor ?? this.verticalHighLightColor,
      verticalAvatarBorderRadius:
          verticalAvatarBorderRadius ?? this.verticalAvatarBorderRadius,
      radius: radius ?? this.radius,
    );