copyWith method

QueryPrediction copyWith({
  1. FormattableText? text,
  2. StructuredFormat? structuredFormat,
})

Implementation

QueryPrediction copyWith({
  FormattableText? text,
  StructuredFormat? structuredFormat,
}) {
  return QueryPrediction(
    text: text ?? this.text,
    structuredFormat: structuredFormat ?? this.structuredFormat,
  );
}