copyWith method
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,
);