CircleAvatar constructor Null safety
- {Key? key,
- Widget? child,
- Color? backgroundColor,
- ImageProvider<
Object> ? backgroundImage, - ImageProvider<
Object> ? foregroundImage, - ImageErrorListener? onBackgroundImageError,
- ImageErrorListener? onForegroundImageError,
- Color? foregroundColor,
- double? radius,
- double? minRadius,
- double? maxRadius}
Creates a circle that represents a user.
Implementation
const CircleAvatar({
super.key,
this.child,
this.backgroundColor,
this.backgroundImage,
this.foregroundImage,
this.onBackgroundImageError,
this.onForegroundImageError,
this.foregroundColor,
this.radius,
this.minRadius,
this.maxRadius,
}) : assert(radius == null || (minRadius == null && maxRadius == null)),
assert(backgroundImage != null || onBackgroundImageError == null),
assert(foregroundImage != null || onForegroundImageError== null);