PlaceholderLines constructor
const
PlaceholderLines({
- Key? key,
- required int count,
- TextAlign align = TextAlign.left,
- Color color = const Color(0xFFDEDEDE),
- double minOpacity = 0.4,
- double maxOpacity = 0.94,
- double maxWidth = .95,
- double minWidth = .72,
- double lineHeight = 12,
- bool animate = false,
- Widget? customAnimationOverlay,
- Color? animationOverlayColor,
- 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);