copyWith method

  1. @override
SkeletonizerConfigData copyWith({
  1. PaintingEffect? effect,
  2. TextBoneBorderRadius? textBorderRadius,
  3. bool? justifyMultiLineText,
  4. bool? ignoreContainers,
  5. Color? containersColor,
  6. bool? enableSwitchAnimation,
  7. 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,
  );
}