copyWith method

AnswerWidgetQuery copyWith({
  1. int? widgetQueryId,
  2. String? data,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

AnswerWidgetQuery copyWith({int? widgetQueryId, String? data}) =>
    AnswerWidgetQuery(
      widgetQueryId: widgetQueryId ?? this.widgetQueryId,
      data: data ?? this.data,
    );