Excel.decodeBytes constructor

Excel.decodeBytes(
  1. List<int> data
)

Implementation

factory Excel.decodeBytes(List<int> data) {
  final Archive archive;
  try {
    archive = ZipDecoder().decodeBytes(data);
  } catch (e) {
    throw UnsupportedError(
        'Excel format unsupported. Only .xlsx files are supported');
  }
  return _newExcel(archive);
}