copyWith method

FluentAvatarStyle copyWith({
  1. WidgetStateProperty<Color?>? backgroundColor,
  2. WidgetStateProperty<Color?>? foregroundColor,
  3. WidgetStateProperty<Color?>? borderColor,
  4. WidgetStateProperty<double?>? borderWidth,
  5. WidgetStateProperty<BorderRadius?>? borderRadius,
  6. WidgetStateProperty<Color?>? ringColor,
  7. WidgetStateProperty<Color?>? ringGapColor,
  8. WidgetStateProperty<double?>? ringWidth,
  9. WidgetStateProperty<TextStyle?>? textStyle,
  10. WidgetStateProperty<double?>? iconSize,
  11. WidgetStateProperty<double?>? diameter,
})

This style with the given properties replaced.

Implementation

FluentAvatarStyle copyWith({
  WidgetStateProperty<Color?>? backgroundColor,
  WidgetStateProperty<Color?>? foregroundColor,
  WidgetStateProperty<Color?>? borderColor,
  WidgetStateProperty<double?>? borderWidth,
  WidgetStateProperty<BorderRadius?>? borderRadius,
  WidgetStateProperty<Color?>? ringColor,
  WidgetStateProperty<Color?>? ringGapColor,
  WidgetStateProperty<double?>? ringWidth,
  WidgetStateProperty<TextStyle?>? textStyle,
  WidgetStateProperty<double?>? iconSize,
  WidgetStateProperty<double?>? diameter,
}) => FluentAvatarStyle(
  backgroundColor: backgroundColor ?? this.backgroundColor,
  foregroundColor: foregroundColor ?? this.foregroundColor,
  borderColor: borderColor ?? this.borderColor,
  borderWidth: borderWidth ?? this.borderWidth,
  borderRadius: borderRadius ?? this.borderRadius,
  ringColor: ringColor ?? this.ringColor,
  ringGapColor: ringGapColor ?? this.ringGapColor,
  ringWidth: ringWidth ?? this.ringWidth,
  textStyle: textStyle ?? this.textStyle,
  iconSize: iconSize ?? this.iconSize,
  diameter: diameter ?? this.diameter,
);