copyWith method

Label copyWith({
  1. String? prefix,
  2. String? name,
  3. String? id,
  4. String? label,
})

Implementation

Label copyWith({String? prefix, String? name, String? id, String? label}) {
  return Label(
    prefix: prefix ?? this.prefix,
    name: name ?? this.name,
    id: id ?? this.id,
    label: label ?? this.label,
  );
}