copyWith method

Properties copyWith({
  1. String? key,
  2. String? title,
  3. String? description,
  4. int? maxLine,
  5. bool? readOnly,
  6. bool? isRequired,
  7. JsonSchemaType? type,
  8. List<String>? fields,
  9. dynamic answer,
})

Implementation

Properties copyWith({
  String? key,
  String? title,
  String? description,
  int? maxLine,
  bool? readOnly,
  bool? isRequired,
  JsonSchemaType? type,
  List<String>? fields,
  dynamic answer,
}) =>
    Properties(
      answer: answer ?? this.answer,
      description: description ?? this.description,
      fields: fields ?? this.fields,
      isRequired: isRequired ?? this.isRequired,
      maxLine: maxLine ?? this.maxLine,
      readOnly: readOnly ?? this.readOnly,
      key: key ?? this.key,
      title: title ?? this.title,
      type: type ?? this.type,
    );