NoShimmer constructor

const NoShimmer({
  1. Key? key,
  2. BorderRadius? borderRadius,
  3. EdgeInsetsGeometry? padding,
  4. double? width,
  5. double? height,
  6. Color color = const Color(0xFFEEEEEE),
  7. 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);