ExcelPreviewData constructor

ExcelPreviewData({
  1. Iterable<ExcelHeaderData>? headerList,
  2. Iterable<ExcelContentData>? contentList,
  3. int? headerStartRow,
  4. int? headerCount,
})

Implementation

factory ExcelPreviewData({
  $core.Iterable<ExcelHeaderData>? headerList,
  $core.Iterable<ExcelContentData>? contentList,
  $core.int? headerStartRow,
  $core.int? headerCount,
}) {
  final result = create();
  if (headerList != null) result.headerList.addAll(headerList);
  if (contentList != null) result.contentList.addAll(contentList);
  if (headerStartRow != null) result.headerStartRow = headerStartRow;
  if (headerCount != null) result.headerCount = headerCount;
  return result;
}