copyWith method

ActivityDefinition copyWith({
  1. int? id,
  2. String? name,
  3. num? weight,
})

Implementation

ActivityDefinition copyWith({int? id, String? name, num? weight}) {
  return ActivityDefinition(
    id: id ?? this.id,
    name: name ?? this.name,
    weight: weight ?? this.weight,
  );
}