parseData method
Implementation
@override
void parseData(dynamic data) {
Uint8List byteList;
if (data is String) {
byteList = Uint8List.fromList(utf8.encode(data));
} else if (data is List<int>) {
byteList = Uint8List.fromList(data);
} else {
throw UnsupportedError(
'Input data type unsupported ' + data.runtimeType.toString());
}
for (var i = 0; i < byteList.length; i++) {
_parseByte(byteList[i]);
}
}