copyWith method

SkeletonProps copyWith({
  1. String? width,
  2. String? height,
  3. String? borderRadius,
  4. SkeletonShape? shape,
  5. bool? animate,
})

Implementation

SkeletonProps copyWith({
  String? width,
  String? height,
  String? borderRadius,
  SkeletonShape? shape,
  bool? animate,
}) {
  return SkeletonProps(
    width: width ?? this.width,
    height: height ?? this.height,
    borderRadius: borderRadius ?? this.borderRadius,
    shape: shape ?? this.shape,
    animate: animate ?? this.animate,
  );
}