UIProShimmer.box constructor

const UIProShimmer.box({
  1. Key? key,
  2. required double? width,
  3. required double? height,
  4. double? borderRadius,
  5. Color? baseColor,
  6. Color? highlightColor,
  7. Duration? duration,
  8. bool enabled = true,
  9. UIProShimmerDirection direction = UIProShimmerDirection.leftToRight,
})

Creates a simple box shimmer placeholder.

Implementation

const UIProShimmer.box({
  super.key,
  required this.width,
  required this.height,
  this.borderRadius,
  this.baseColor,
  this.highlightColor,
  this.duration,
  this.enabled = true,
  this.direction = UIProShimmerDirection.leftToRight,
})  : child = null,
      shape = UIProShimmerShape.rectangle;