copyWith method

SkeletonLineStyle copyWith({
  1. double? width,
  2. double? height,
  3. EdgeInsetsGeometry? padding,
  4. bool? randomLength,
  5. double? minLength,
  6. double? maxLength,
  7. AlignmentGeometry? alignment,
  8. BorderRadiusGeometry? borderRadius,
})

Implementation

SkeletonLineStyle copyWith({
  double? width,
  double? height,
  EdgeInsetsGeometry? padding,
  bool? randomLength,
  double? minLength,
  double? maxLength,
  AlignmentGeometry? alignment,
  BorderRadiusGeometry? borderRadius,
}) {
  return SkeletonLineStyle(
    width: width ?? this.width,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    randomLength: randomLength ?? this.randomLength,
    alignment: alignment ?? this.alignment,
    minLength: minLength ?? this.minLength,
    maxLength: maxLength ?? this.maxLength,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}