copyWith method
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,
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,
);