copyWith method
Copy with some properties replaced
Implementation
MessageListStyle copyWith({
Color? loadingIconTint,
TextStyle? emptyTextStyle,
TextStyle? errorTextStyle,
EdgeInsetsGeometry? contentPadding,
double? width,
double? height,
Color? background,
Border? border,
double? borderRadius,
Gradient? gradient,
}) {
return MessageListStyle(
loadingIconTint: loadingIconTint ?? this.loadingIconTint,
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
errorTextStyle: errorTextStyle ?? this.errorTextStyle,
contentPadding: contentPadding ?? this.contentPadding,
width: width ?? this.width,
height: height ?? this.height,
background: background ?? this.background,
border: border ?? this.border,
borderRadius: borderRadius ?? this.borderRadius,
gradient: gradient ?? this.gradient,
);
}