SpreadsheetTable constructor
const
SpreadsheetTable({
- Key? key,
- required List<
SpreadsheetRow> initialData, - required List<
String> headers, - ValueChanged<
List< ? onDataChanged,SpreadsheetRow> > - ValueChanged<
SpreadsheetRow> ? onRowDataChanged, - VoidCallback? onNewRowAdded,
- ValueChanged<
SpreadsheetRow> ? onRowDismissed, - SpreadsheetButtonBuilder? leadingButtonBuilder,
- SpreadsheetButtonBuilder? trailingButtonBuilder,
- EdgeInsetsGeometry cellContentPadding = const EdgeInsets.symmetric(horizontal: 10.0, vertical: 8.0),
- bool zebraStripe = false,
- List<
Color> stripeColors = const [Colors.white, Color(0xFFF5F5F5)], - bool autoLeadingSN = false,
- Map<
String, TextAlign> columnAlignments = const {}, - Map<
String, List< dropdownOptions = const {},String> > - Map<
String, CellValidator> validators = const {},
Implementation
const SpreadsheetTable(
{super.key,
required this.initialData,
required this.headers,
this.onDataChanged,
this.onRowDataChanged,
this.onNewRowAdded,
this.onRowDismissed,
this.leadingButtonBuilder,
this.trailingButtonBuilder,
this.cellContentPadding =
const EdgeInsets.symmetric(horizontal: 10.0, vertical: 8.0),
this.zebraStripe = false,
this.stripeColors = const [Colors.white, Color(0xFFF5F5F5)],
this.autoLeadingSN = false,
this.columnAlignments = const {},
this.dropdownOptions = const {},
this.validators = const {}})
: assert(stripeColors.length == 2,
'stripeColors must contain exactly two colors if zebraStripe is true');