PlaceholderLines constructor

const PlaceholderLines({
  1. Key? key,
  2. required int count,
  3. TextAlign align = TextAlign.left,
  4. Color color = const Color(0xFFDEDEDE),
  5. double minOpacity = 0.4,
  6. double maxOpacity = 0.94,
  7. double maxWidth = .95,
  8. double minWidth = .72,
  9. double lineHeight = 12,
  10. bool animate = false,
  11. Widget? customAnimationOverlay,
  12. Color? animationOverlayColor,
  13. bool rebuildOnStateChange = false,
})

Implementation

const PlaceholderLines({
  Key? key,
  required this.count,
  this.align = TextAlign.left,
  this.color = const Color(0xFFDEDEDE),
  this.minOpacity = 0.4,
  this.maxOpacity = 0.94,
  this.maxWidth = .95,
  this.minWidth = .72,
  this.lineHeight = 12,
  this.animate = false,
  this.customAnimationOverlay,
  this.animationOverlayColor,
  this.rebuildOnStateChange = false,
})  : assert(minOpacity <= 1 && maxOpacity <= 1),
      assert(minWidth <= 1 && maxWidth <= 1),
      assert(minOpacity <= maxOpacity),
      super(key: key);