copyWith method

ChatUIKitEventAction copyWith({
  1. ChatUIKitEventActionType? type,
  2. String? label,
  3. TextStyle? style,
  4. Widget? icon,
  5. T? onTap()?,
})

Implementation

ChatUIKitEventAction copyWith({
  ChatUIKitEventActionType? type,
  String? label,
  TextStyle? style,
  Widget? icon,
  T? Function()? onTap,
}) {
  return ChatUIKitEventAction(
    actionType: this.actionType,
    type: type ?? this.type,
    label: label ?? this.label,
    style: style ?? this.style,
    icon: icon ?? this.icon,
    onTap: onTap ?? this.onTap,
  );
}