copyWith method

SkeletonConfig copyWith({
  1. bool? shimmer,
  2. Color? baseColor,
  3. Color? highlightColor,
  4. Duration? shimmerDuration,
  5. double? borderRadius,
  6. bool? enableCache,
  7. bool? debugMode,
  8. bool? gracefulFallback,
})

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,
  );
}