copyWith method

SkeletonProps copyWith({
  1. String? width,
  2. String? height,
  3. String? borderRadius,
  4. SkeletonShape? shape,
  5. bool? animate,
  6. ArcaneStyleData? styles,
  7. ArcaneDecoration? decoration,
})

Implementation

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