copyWith method

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

Implementation

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