copyWith method

MessageListStyle copyWith({
  1. Color? loadingIconTint,
  2. TextStyle? emptyTextStyle,
  3. TextStyle? errorTextStyle,
  4. EdgeInsetsGeometry? contentPadding,
  5. double? width,
  6. double? height,
  7. Color? background,
  8. Border? border,
  9. double? borderRadius,
  10. Gradient? gradient,
})

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,
  );
}