copyWith method

ToolResultBlock copyWith({
  1. String? toolUseId,
  2. dynamic content,
  3. bool? isError,
})

Implementation

ToolResultBlock copyWith({
  String? toolUseId,
  dynamic content,
  bool? isError,
}) {
  return ToolResultBlock(
    toolUseId: toolUseId ?? this.toolUseId,
    content: content ?? this.content,
    isError: isError ?? this.isError,
  );
}