setAttribute method

void setAttribute(
  1. EIRType? type,
  2. Uint8List value
)

Implementation

void setAttribute(EIRType? type, Uint8List value) {
  if (!EIR.typeNumMap.containsKey(type)) {
    throw ArgumentError(
        "EIR type $type is not supported, please select one from ${EIRType.values}");
  }
  attributes[type!] = value;
}