GlassSkeletonLoader.text constructor

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

Creates a single placeholder text line — a short, fully-rounded bar.

Implementation

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