copyWith method
Implementation
LeidingNode copyWith({
String? naam,
String? parentId,
bool clearParent = false,
Invoer? invoer,
Resultaten? resultaten,
bool clearResultaten = false,
}) =>
LeidingNode(
id: id,
naam: naam ?? this.naam,
parentId: clearParent ? null : (parentId ?? this.parentId),
invoer: invoer ?? this.invoer,
resultaten: clearResultaten ? null : (resultaten ?? this.resultaten),
);