copyWith method

AIOptionsStyle copyWith({
  1. TextStyle? itemTextStyle,
  2. Color? itemsSeparatorColor,
  3. Color? itemBackgroundColor,
  4. double? width,
  5. double? height,
  6. Color? background,
  7. Gradient? gradient,
  8. BoxBorder? border,
  9. double? borderRadius,
})

Copies current AISmartRepliesStyle with some changes

Implementation

AIOptionsStyle copyWith({
  TextStyle? itemTextStyle,
  Color? itemsSeparatorColor,
  Color? itemBackgroundColor,
  double? width,
  double? height,
  Color? background,
  Gradient? gradient,
  BoxBorder? border,
  double? borderRadius,
}) {
  return AIOptionsStyle(
    itemTextStyle: itemTextStyle ?? this.itemTextStyle,
    itemsSeparatorColor: itemsSeparatorColor ?? this.itemsSeparatorColor,
    itemBackgroundColor: itemBackgroundColor ?? this.itemBackgroundColor,
    width: width ?? this.width,
    height: height ?? this.height,
    background: background ?? this.background,
    gradient: gradient ?? super.gradient,
    border: border ?? this.border,
    borderRadius: borderRadius ?? super.borderRadius,
  );
}