copyWith method

Field copyWith({
  1. int? contextsCount,
  2. String? description,
  3. String? id,
  4. bool? isLocked,
  5. bool? isUnscreenable,
  6. String? key,
  7. FieldLastUsed? lastUsed,
  8. String? name,
  9. int? projectsCount,
  10. JsonTypeBean? schema,
  11. int? screensCount,
  12. String? searcherKey,
})

Implementation

Field copyWith(
    {int? contextsCount,
    String? description,
    String? id,
    bool? isLocked,
    bool? isUnscreenable,
    String? key,
    FieldLastUsed? lastUsed,
    String? name,
    int? projectsCount,
    JsonTypeBean? schema,
    int? screensCount,
    String? searcherKey}) {
  return Field(
    contextsCount: contextsCount ?? this.contextsCount,
    description: description ?? this.description,
    id: id ?? this.id,
    isLocked: isLocked ?? this.isLocked,
    isUnscreenable: isUnscreenable ?? this.isUnscreenable,
    key: key ?? this.key,
    lastUsed: lastUsed ?? this.lastUsed,
    name: name ?? this.name,
    projectsCount: projectsCount ?? this.projectsCount,
    schema: schema ?? this.schema,
    screensCount: screensCount ?? this.screensCount,
    searcherKey: searcherKey ?? this.searcherKey,
  );
}