SkeletonizerConfigData class

The immutable configuration data for the skeletonizer theme.

Inheritance
Annotations

Constructors

SkeletonizerConfigData.new({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.
const
SkeletonizerConfigData.dark({PaintingEffect effect = const ShimmerEffect(baseColor: Color(0xFF3A3A3A), highlightColor: Color(0xFF424242)), 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 for dark theme.
const
SkeletonizerConfigData.light({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 for light theme.
const

Properties

containersColor Color?
The color of the container elements this includes Container, Card, DecoratedBox ..etc
final
effect PaintingEffect
The painting effect to apply on the skeletonized elements
final
enableSwitchAnimation bool
Whether to enable switch animation
final
hashCode int
The hash code for this object.
no setterinherited
ignoreContainers bool
Whether to ignore container elements and only paint the dependents
final
justifyMultiLineText bool
Whether to justify multi line text bones
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchAnimationConfig SwitchAnimationConfig
The switch animation config
final
textBorderRadius TextBoneBorderRadius
The TextElement border radius config
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({PaintingEffect? effect, TextBoneBorderRadius? textBorderRadius, bool? justifyMultiLineText, bool? ignoreContainers, Color? containersColor, bool? enableSwitchAnimation, SwitchAnimationConfig? switchAnimationConfig}) SkeletonizerConfigData
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant SkeletonizerConfigData? other, double t) SkeletonizerConfigData
Linearly interpolate with another ThemeExtension object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited