copyWith method
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,
})
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(),
);
}