copyWith method

  1. @override
AIOptionsStyle copyWith({
  1. Color? backgroundColor,
  2. Border? border,
  3. BorderRadiusGeometry? borderRadius,
  4. TextStyle? titleTextStyle,
  5. Color? titleColor,
  6. Color? iconColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
AIOptionsStyle copyWith({
  Color? backgroundColor,
  Border? border,
  BorderRadiusGeometry? borderRadius,
  TextStyle? titleTextStyle,
  Color? titleColor,
  Color? iconColor,
}) {
  return AIOptionsStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    titleTextStyle: titleTextStyle ?? this.titleTextStyle,
    titleColor: titleColor ?? this.titleColor,
    iconColor: iconColor ?? this.iconColor,
  );
}