copyWith method

OdooGroup copyWith({
  1. String? id,
  2. String? label,
  3. List<OdooField>? fields,
  4. List<OdooGroup>? subGroups,
  5. int? colspan,
  6. bool? fillBrk,
  7. bool? expand,
  8. String? expandButtonLabel,
  9. int? col,
  10. String? groups,
  11. bool? invisible,
  12. String? attrs,
  13. int? nestingLevel,
})

Implementation

OdooGroup copyWith({
  String? id,
  String? label,
  List<OdooField>? fields,
  List<OdooGroup>? subGroups,
  int? colspan,
  bool? fillBrk,
  bool? expand,
  String? expandButtonLabel,
  int? col,
  String? groups,
  bool? invisible,
  String? attrs,
  int? nestingLevel,
}) {
  return OdooGroup(
    id: id ?? this.id,
    label: label ?? this.label,
    fields: fields ?? this.fields,
    subGroups: subGroups ?? this.subGroups,
    colspan: colspan ?? this.colspan,
    fillBrk: fillBrk ?? this.fillBrk,
    expand: expand ?? this.expand,
    expandButtonLabel: expandButtonLabel ?? this.expandButtonLabel,
    col: col ?? this.col,
    groups: groups ?? this.groups,
    invisible: invisible ?? this.invisible,
    attrs: attrs ?? this.attrs,
    nestingLevel: nestingLevel ?? this.nestingLevel,
    createdAt: createdAt,
    updatedAt: DateTime.now(),
  );
}