copyWith method

AISmartRepliesStyle copyWith({
  1. TextStyle? replyTextStyle,
  2. Color? backgroundColor,
  3. Color? loadingIconTint,
  4. TextStyle? emptyTextStyle,
  5. TextStyle? errorTextStyle,
  6. Color? errorIconTint,
  7. Color? emptyIconTint,
  8. Color? dividerTint,
  9. TextStyle? loadingTextStyle,
})

Copies current AISmartRepliesStyle with some changes

Implementation

AISmartRepliesStyle copyWith({
  TextStyle? replyTextStyle,
  Color? backgroundColor,
  Color? loadingIconTint,
  TextStyle? emptyTextStyle,
  TextStyle? errorTextStyle,
  Color? errorIconTint,
  Color? emptyIconTint,
  Color? dividerTint,
  TextStyle? loadingTextStyle,
}) {
  return AISmartRepliesStyle(
    replyTextStyle: replyTextStyle ?? this.replyTextStyle,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    loadingIconTint: loadingIconTint ?? this.loadingIconTint,
    emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
    errorTextStyle: errorTextStyle ?? this.errorTextStyle,
    errorIconTint: errorIconTint ?? this.errorIconTint,
    emptyIconTint: emptyIconTint ?? this.emptyIconTint,
    dividerTint: dividerTint ?? this.dividerTint,
    loadingTextStyle: loadingTextStyle ?? this.loadingTextStyle,
  );
}