CircleAvatar constructor

const CircleAvatar(
  1. {Key? key,
  2. Widget? child,
  3. Color? backgroundColor,
  4. ImageProvider<Object>? backgroundImage,
  5. ImageProvider<Object>? foregroundImage,
  6. ImageErrorListener? onBackgroundImageError,
  7. ImageErrorListener? onForegroundImageError,
  8. Color? foregroundColor,
  9. double? radius,
  10. double? minRadius,
  11. 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);