copyWith method
CircleAvatar
copyWith({})
Implementation
CircleAvatar copyWith({
Key? key,
Widget? child,
Color? backgroundColor,
ImageProvider? backgroundImage,
ImageProvider? foregroundImage,
void Function(Object, StackTrace?)? onBackgroundImageError,
void Function(Object, StackTrace?)? onForegroundImageError,
Color? foregroundColor,
double? radius,
double? minRadius,
double? maxRadius,
}) {
return CircleAvatar(
key: key ?? this.key,
child: child ?? this.child,
backgroundColor: backgroundColor ?? this.backgroundColor,
backgroundImage: backgroundImage ?? this.backgroundImage,
foregroundImage: foregroundImage ?? this.foregroundImage,
onBackgroundImageError: onBackgroundImageError ?? this.onBackgroundImageError,
onForegroundImageError: onForegroundImageError ?? this.onForegroundImageError,
foregroundColor: foregroundColor ?? this.foregroundColor,
radius: radius ?? this.radius,
minRadius: minRadius ?? this.minRadius,
maxRadius: maxRadius ?? this.maxRadius,
);
}