GlassSkeletonLoader constructor

const GlassSkeletonLoader({
  1. Key? key,
  2. double? width,
  3. double height = 16,
  4. double borderRadius = 8,
  5. Color? baseColor,
  6. Color? highlightColor,
  7. Duration duration = const Duration(milliseconds: 1400),
})

Creates a rectangular skeleton placeholder.

Implementation

const GlassSkeletonLoader({
  super.key,
  this.width,
  this.height = 16,
  this.borderRadius = 8,
  this.baseColor,
  this.highlightColor,
  this.duration = const Duration(milliseconds: 1400),
}) : _shape = BoxShape.rectangle;