copyWith method

ElicitationPropertySchemaString copyWith({
  1. Object? type = _acpCopyWithAbsent,
  2. Object? title = _acpCopyWithAbsent,
  3. Object? description = _acpCopyWithAbsent,
  4. Object? minLength = _acpCopyWithAbsent,
  5. Object? maxLength = _acpCopyWithAbsent,
  6. Object? pattern = _acpCopyWithAbsent,
  7. Object? format = _acpCopyWithAbsent,
  8. Object? defaultValue = _acpCopyWithAbsent,
  9. Object? enumValue = _acpCopyWithAbsent,
  10. Object? oneOf = _acpCopyWithAbsent,
  11. Object? meta = _acpCopyWithAbsent,
})

Implementation

ElicitationPropertySchemaString copyWith({
  Object? type = _acpCopyWithAbsent,
  Object? title = _acpCopyWithAbsent,
  Object? description = _acpCopyWithAbsent,
  Object? minLength = _acpCopyWithAbsent,
  Object? maxLength = _acpCopyWithAbsent,
  Object? pattern = _acpCopyWithAbsent,
  Object? format = _acpCopyWithAbsent,
  Object? defaultValue = _acpCopyWithAbsent,
  Object? enumValue = _acpCopyWithAbsent,
  Object? oneOf = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ElicitationPropertySchemaString(
  type: identical(type, _acpCopyWithAbsent) ? this.type : type as String,
  title: identical(title, _acpCopyWithAbsent) ? this.title : title as String?,
  description: identical(description, _acpCopyWithAbsent)
      ? this.description
      : description as String?,
  minLength: identical(minLength, _acpCopyWithAbsent)
      ? this.minLength
      : minLength as int?,
  maxLength: identical(maxLength, _acpCopyWithAbsent)
      ? this.maxLength
      : maxLength as int?,
  pattern: identical(pattern, _acpCopyWithAbsent)
      ? this.pattern
      : pattern as String?,
  format: identical(format, _acpCopyWithAbsent)
      ? this.format
      : format as StringFormat?,
  defaultValue: identical(defaultValue, _acpCopyWithAbsent)
      ? this.defaultValue
      : defaultValue as String?,
  enumValue: identical(enumValue, _acpCopyWithAbsent)
      ? this.enumValue
      : enumValue as List<String>?,
  oneOf: identical(oneOf, _acpCopyWithAbsent)
      ? this.oneOf
      : oneOf as List<EnumOption>?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);