SkeletonAvatarStyle constructor

const SkeletonAvatarStyle({
  1. double? width = 48,
  2. double? height = 48,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  4. bool? randomWidth,
  5. double? minWidth,
  6. double? maxWidth,
  7. bool? randomHeight,
  8. double? minHeight,
  9. double? maxHeight,
  10. BoxShape shape = BoxShape.rectangle,
  11. BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(4)),
})

Implementation

const SkeletonAvatarStyle({
  this.width = 48,
  this.height = 48,
  this.padding = const EdgeInsets.all(0),
  this.randomWidth,
  this.minWidth,
  this.maxWidth,
  this.randomHeight,
  this.minHeight,
  this.maxHeight,
  this.shape = BoxShape.rectangle,
  this.borderRadius = const BorderRadius.all(Radius.circular(4)),
})  : assert(minWidth == null ||
          (minWidth > 0 && (maxWidth == null || maxWidth > minWidth))),
      assert(maxWidth == null ||
          (maxWidth > 0 && (minWidth == null || minWidth < maxWidth))),
      assert(minHeight == null ||
          (minHeight > 0 && (maxHeight == null || maxHeight > minHeight))),
      assert(maxHeight == null ||
          (maxHeight > 0 && (minHeight == null || minHeight < maxHeight)));