DataElement.fromString constructor

DataElement.fromString(
  1. int type,
  2. String valueString
)

Implementation

DataElement.fromString(int type, String valueString) {
  this.type = type;
  value = utf8.encode(valueString) as Uint8List;
}