createUint8ListFromString method

Uint8List createUint8ListFromString(
  1. String s
)

Creates a Uint8List from a string to be signed

Implementation

Uint8List createUint8ListFromString(String s) {
  var codec = Utf8Codec(allowMalformed: true);
  return Uint8List.fromList(codec.encode(s));
}