copyWith method

SkeletonTheme copyWith({
  1. Color? baseColor,
  2. Color? highlightColor,
  3. double? borderRadius,
})

Copies this theme with optional overrides.

Implementation

SkeletonTheme copyWith({
  Color? baseColor,
  Color? highlightColor,
  double? borderRadius,
}) {
  return SkeletonTheme(
    baseColor: baseColor ?? this.baseColor,
    highlightColor: highlightColor ?? this.highlightColor,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}