copyWith method

dynamic copyWith({
  1. TextStyle? titleStyle,
  2. Color? separatorColor,
  3. double? width,
  4. double? height,
  5. Color? background,
  6. Gradient? gradient,
  7. BoxBorder? border,
  8. double? borderRadius,
})

Implementation

copyWith({
  TextStyle? titleStyle,
  Color? separatorColor,
  double? width,
  double? height,
  Color? background,
  Gradient? gradient,
  BoxBorder? border,
  double? borderRadius,
}) {
  return ListItemStyle(
    titleStyle: titleStyle ?? this.titleStyle,
    separatorColor: separatorColor ?? this.separatorColor,
    width: width ?? this.width,
    height: height ?? this.height,
    background: background ?? this.background,
    gradient: gradient ?? this.gradient,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
  );
}