TxSquareAvatar constructor

const TxSquareAvatar({
  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,
  12. BorderRadiusGeometry? borderRadius,
  13. BoxFit? foregroundImageFit,
  14. BoxFit? backgroundImageFit,
})

Implementation

const TxSquareAvatar({
  super.key,
  this.child,
  this.backgroundColor,
  this.backgroundImage,
  this.foregroundImage,
  this.onBackgroundImageError,
  this.onForegroundImageError,
  this.foregroundColor,
  this.radius,
  this.minRadius,
  this.maxRadius,
  this.borderRadius,
  this.foregroundImageFit,
  this.backgroundImageFit,
})  : assert(radius == null || (minRadius == null && maxRadius == null)),
      assert(backgroundImage != null || onBackgroundImageError == null),
      assert(foregroundImage != null || onForegroundImageError == null);