decodeOutput method

  1. @override
Uint8List decodeOutput(
  1. Object data
)
override

decode the output of the channel to bytes

Implementation

@override
Uint8List decodeOutput(Object data) {
  Map jsData = {'value': data};
  String js = jsonEncode(jsData);
  return Uint8List.fromList(utf8.encode(js)..insert(0, 0));
}