copyWith method
Creates a copy with optional overrides.
Implementation
SkeletonConfig copyWith({
bool? shimmer,
Color? baseColor,
Color? highlightColor,
Duration? shimmerDuration,
double? borderRadius,
bool? enableCache,
bool? debugMode,
bool? gracefulFallback,
}) {
return SkeletonConfig(
shimmer: shimmer ?? this.shimmer,
baseColor: baseColor ?? this.baseColor,
highlightColor: highlightColor ?? this.highlightColor,
shimmerDuration: shimmerDuration ?? this.shimmerDuration,
borderRadius: borderRadius ?? this.borderRadius,
enableCache: enableCache ?? this.enableCache,
debugMode: debugMode ?? this.debugMode,
gracefulFallback: gracefulFallback ?? this.gracefulFallback,
);
}