copyWithWrapped method

ActivityDefinition copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<num>? weight,
})

Implementation

ActivityDefinition copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<String>? name,
  Wrapped<num>? weight,
}) {
  return ActivityDefinition(
    id: (id != null ? id.value : this.id),
    name: (name != null ? name.value : this.name),
    weight: (weight != null ? weight.value : this.weight),
  );
}