DbLensListView constructor

const DbLensListView({
  1. Key? key,
  2. required List<Map<String, Object?>> rows,
  3. required List<String> columns,
  4. int rowNumberStart = 1,
  5. int previewColumnCount = 2,
  6. String searchQuery = '',
  7. bool canEditColumn(
    1. String column
    )?,
  8. Future<void> onEditCell(
    1. String column,
    2. Object? currentValue,
    3. Map<String, Object?> row
    )?,
  9. Future<bool> onSaveCell(
    1. String column,
    2. Object? newValue,
    3. Map<String, Object?> row
    )?,
  10. DbLensController? controller,
  11. bool? isSQLite,
  12. void onCopyRow(
    1. Map<String, Object?> row
    )?,
  13. DbLensValueRenderer? valueRenderer,
  14. EdgeInsets padding = const EdgeInsets.all(12),
})

Implementation

const DbLensListView({
  super.key,
  required this.rows,
  required this.columns,
  this.rowNumberStart = 1,
  this.previewColumnCount = 2,
  this.searchQuery = '',
  this.canEditColumn,
  this.onEditCell,
  this.onSaveCell,
  this.controller,
  this.isSQLite,
  this.onCopyRow,
  this.valueRenderer,
  this.padding = const EdgeInsets.all(12),
});