SkeletonAvatarStyle constructor
const
SkeletonAvatarStyle({
- double? width = 48,
- double? height = 48,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- bool? randomWidth,
- double? minWidth,
- double? maxWidth,
- bool? randomHeight,
- double? minHeight,
- double? maxHeight,
- BoxShape shape = BoxShape.rectangle,
- BorderRadiusGeometry? borderRadius = const BorderRadius.all(Radius.circular(4)),
Skeleton Style for Avatar
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)));