copyWith method

AxelorBody copyWith({
  1. int? offset,
  2. int? limit,
  3. List<String>? fields,
  4. bool? translate,
  5. List<String>? sortBy,
  6. String? action,
  7. List<MapEntry<String, List<String>>>? related,
  8. Map<String, dynamic>? data,
  9. String? domain,
  10. Map<String, dynamic>? domainContext,
  11. bool? archived,
  12. AxelorCriteria? criteria,
  13. int? version,
  14. int? id,
})

Implementation

AxelorBody copyWith({
  int? offset,
  int? limit,
  List<String>? fields,
  bool? translate,
  List<String>? sortBy,
  String? action,
  List<MapEntry<String, List<String>>>? related,
  Map<String, dynamic>? data,
  String? domain,
  Map<String, dynamic>? domainContext,
  bool? archived,
  AxelorCriteria? criteria,
  int? version,
  int? id,
}) {
  return AxelorBody(
    offset: offset ?? this.offset,
    limit: limit ?? this.limit,
    fields: fields ?? this.fields,
    translate: translate ?? this.translate,
    sortBy: sortBy ?? this.sortBy,
    action: action ?? this.action,
    related: related ?? this.related,
    data: data ?? this.data,
    domain: domain ?? this.domain,
    domainContext: domainContext ?? this.domainContext,
    archived: archived ?? this.archived,
    criteria: criteria ?? this.criteria,
    version: version ?? this.version,
    id: id ?? this.id,
  );
}