NoShimmer constructor
const
NoShimmer({
- Key? key,
- BorderRadius? borderRadius,
- EdgeInsetsGeometry? padding,
- double? width,
- double? height,
- Color color = const Color(0xFFEEEEEE),
- Clip? clipBehavior,
Creates a single colored box
If width is not specified, then it defaults to BoxConstraints.maxWidth which can be double.infinity
If height is not specified, then it defaults to BoxConstraints.maxHeight which can be double.infinity
color defaults to Color(0xFFEEEEEE)
a.k.a Colors.grey[200]
Implementation
const NoShimmer({
Key? key,
this.borderRadius,
this.padding,
this.width,
this.height,
this.color = const Color(0xFFEEEEEE),
this.clipBehavior,
}) : assert(width == null || width != -0.0 && width >= 0.0),
assert(height == null || height != -0.0 && height >= 0.0),
super(key: key);