DataElement.fromString constructor

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

Constructs a DataElement with type and valueString encoded as UTF-8.

Implementation

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