Uint8List textEncoder(String value) { final u8a = Uint8List(value.length); for (var i = 0; i < value.length; i++) { u8a[i] = value.codeUnitAt(i); } return u8a; }