parseData method

  1. @override
void parseData(
  1. dynamic data
)
override

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);
}