setAttribute method

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

Sets the attribute value for the specified EIR type.

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;
}