copyWith method

FieldDetails copyWith({
  1. List<String>? clauseNames,
  2. bool? custom,
  3. String? id,
  4. String? key,
  5. String? name,
  6. bool? navigable,
  7. bool? orderable,
  8. JsonTypeBean? schema,
  9. Scope? scope,
  10. bool? searchable,
})

Implementation

FieldDetails copyWith(
    {List<String>? clauseNames,
    bool? custom,
    String? id,
    String? key,
    String? name,
    bool? navigable,
    bool? orderable,
    JsonTypeBean? schema,
    Scope? scope,
    bool? searchable}) {
  return FieldDetails(
    clauseNames: clauseNames ?? this.clauseNames,
    custom: custom ?? this.custom,
    id: id ?? this.id,
    key: key ?? this.key,
    name: name ?? this.name,
    navigable: navigable ?? this.navigable,
    orderable: orderable ?? this.orderable,
    schema: schema ?? this.schema,
    scope: scope ?? this.scope,
    searchable: searchable ?? this.searchable,
  );
}