copyWith method
SkeletonizerConfigData
copyWith({
- PaintingEffect? effect,
- TextBoneBorderRadius? textBorderRadius,
- bool? justifyMultiLineText,
- bool? ignoreContainers,
- Color? containersColor,
- bool? enableSwitchAnimation,
- SwitchAnimationConfig? switchAnimationConfig,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
SkeletonizerConfigData copyWith({
PaintingEffect? effect,
TextBoneBorderRadius? textBorderRadius,
bool? justifyMultiLineText,
bool? ignoreContainers,
Color? containersColor,
bool? enableSwitchAnimation,
SwitchAnimationConfig? switchAnimationConfig,
}) {
return SkeletonizerConfigData(
effect: effect ?? this.effect,
textBorderRadius: textBorderRadius ?? this.textBorderRadius,
justifyMultiLineText: justifyMultiLineText ?? this.justifyMultiLineText,
ignoreContainers: ignoreContainers ?? this.ignoreContainers,
containersColor: containersColor ?? this.containersColor,
enableSwitchAnimation:
enableSwitchAnimation ?? this.enableSwitchAnimation,
switchAnimationConfig:
switchAnimationConfig ?? this.switchAnimationConfig,
);
}