SkeletonizerConfigData constructor
const
SkeletonizerConfigData({
- PaintingEffect effect = const ShimmerEffect(),
- TextBoneBorderRadius textBorderRadius = _defaultTextBoneBorderRadius,
- bool justifyMultiLineText = true,
- bool ignoreContainers = false,
- Color? containersColor,
- bool enableSwitchAnimation = false,
- SwitchAnimationConfig switchAnimationConfig = const SwitchAnimationConfig(),
Constructs a SkeletonizerConfigData instance with the given properties.
effect: The painting effect to apply on the skeletonized elements.textBorderRadius: The border radius configuration for text elements.justifyMultiLineText: Whether to justify multi-line text bones.ignoreContainers: Whether to ignore container elements and only paint the dependents.containersColor: The color of the container elements. If null, the actual color will be used.enableSwitchAnimation: Whether to enable switch animation between the skeleton and the actual widget.switchAnimationConfig: The configuration for the switch animation.
Implementation
const SkeletonizerConfigData({
this.effect = const ShimmerEffect(),
this.textBorderRadius = _defaultTextBoneBorderRadius,
this.justifyMultiLineText = true,
this.ignoreContainers = false,
this.containersColor,
this.enableSwitchAnimation = false,
this.switchAnimationConfig = const SwitchAnimationConfig(),
});