addRfuForEMVCo method
RFU for EMVCo
RFU for EMVCo is list type. u can add more than one item.
id
id is "12" to "49"
Implementation
addRfuForEMVCo({String? id, String? value}) {
if (id != null && value != null) {
if (int.parse(id) < int.parse(AdditionalID.rfuForEMVCoRangeStart) ||
int.parse(id) > int.parse(AdditionalID.rfuForEMVCoRangeEnd)) {
// this.value = this.value.copyWith(rfuForEMVCo: []);
throw InvalidId(title: "RfuForEMVCo");
}
if (this.value.rfuForEMVCo != null) {
this.value.rfuForEMVCo?.add(setTLV(value, id));
} else {
List<TLVModel> tlv = [];
tlv.add(setTLV(value, id));
this.value = this.value.copyWith(rfuForEMVCo: tlv);
}
}
}