copyWith method

SemanticVad copyWith({
  1. Object? createResponse = unsetCopyWithValue,
  2. Object? eagerness = unsetCopyWithValue,
  3. Object? interruptResponse = unsetCopyWithValue,
})

Returns a copy with the given fields replaced.

Pass null for any field to clear the existing value.

Implementation

SemanticVad copyWith({
  Object? createResponse = unsetCopyWithValue,
  Object? eagerness = unsetCopyWithValue,
  Object? interruptResponse = unsetCopyWithValue,
}) => SemanticVad(
  createResponse: identical(createResponse, unsetCopyWithValue)
      ? this.createResponse
      : createResponse as bool?,
  eagerness: identical(eagerness, unsetCopyWithValue)
      ? this.eagerness
      : eagerness as SemanticVadEagerness?,
  interruptResponse: identical(interruptResponse, unsetCopyWithValue)
      ? this.interruptResponse
      : interruptResponse as bool?,
);