PivotTable constructor

PivotTable({
  1. required String name,
  2. required CellIndex anchor,
  3. required CellIndex sourceFrom,
  4. required CellIndex sourceTo,
  5. required int rowField,
  6. required List<PivotDataField> dataFields,
  7. List<int> subRowFields = const [],
  8. int? columnField,
  9. List<int> pageFields = const [],
  10. String? sourceSheet,
})

Creates a pivot table over the source range sourceFrom-sourceTo, grouped by rowField and summarised by dataFields, placed at anchor.

Implementation

PivotTable({
  required this.name,
  required this.anchor,
  required this.sourceFrom,
  required this.sourceTo,
  required this.rowField,
  required this.dataFields,
  this.subRowFields = const [],
  this.columnField,
  this.pageFields = const [],
  this.sourceSheet,
});