copyWith method

UISkeletonPlaceholder copyWith({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. Color? color,
  5. double? borderRadius,
  6. Color? baseColor,
  7. Color? highlightColor,
})

Implementation

UISkeletonPlaceholder copyWith({
  Key? key,
  double? width,
  double? height,
  Color? color,
  double? borderRadius,
  Color? baseColor,
  Color? highlightColor,
}) {
  return UISkeletonPlaceholder(
    key: key ?? this.key,
    width: width ?? this.width,
    height: height ?? this.height,
    color: color ?? this.color,
    borderRadius: borderRadius ?? this.borderRadius,
    baseColor: baseColor ?? this.baseColor,
    highlightColor: highlightColor ?? this.highlightColor,
  );
}