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');
}
_collectData(byteList);
}