PlutoColumn constructor

PlutoColumn({
  1. required String title,
  2. required String field,
  3. required PlutoColumnType type,
  4. bool readOnly = false,
  5. PlutoColumnCheckReadOnly? checkReadOnly,
  6. double width = PlutoGridSettings.columnWidth,
  7. double minWidth = PlutoGridSettings.minColumnWidth,
  8. EdgeInsets? titlePadding,
  9. EdgeInsets? filterPadding,
  10. InlineSpan? titleSpan,
  11. EdgeInsets? cellPadding,
  12. PlutoColumnTextAlign textAlign = PlutoColumnTextAlign.start,
  13. PlutoColumnTextAlign titleTextAlign = PlutoColumnTextAlign.start,
  14. PlutoColumnFrozen frozen = PlutoColumnFrozen.none,
  15. PlutoColumnSort sort = PlutoColumnSort.none,
  16. PlutoColumnValueFormatter? formatter,
  17. bool applyFormatterInEditing = false,
  18. Color? backgroundColor,
  19. PlutoColumnRenderer? renderer,
  20. PlutoColumnFooterRenderer? footerRenderer,
  21. bool suppressedAutoSize = false,
  22. bool enableColumnDrag = true,
  23. bool enableRowDrag = false,
  24. bool enableRowChecked = false,
  25. bool enableSorting = true,
  26. bool enableContextMenu = true,
  27. bool enableDropToResize = true,
  28. bool enableFilterMenuItem = true,
  29. bool enableHideColumnMenuItem = true,
  30. bool enableSetColumnsMenuItem = true,
  31. bool enableAutoEditing = false,
  32. bool? enableEditingMode = true,
  33. bool hide = false,
})

Implementation

PlutoColumn({
  required this.title,
  required this.field,
  required this.type,
  this.readOnly = false,
  PlutoColumnCheckReadOnly? checkReadOnly,
  this.width = PlutoGridSettings.columnWidth,
  this.minWidth = PlutoGridSettings.minColumnWidth,
  this.titlePadding,
  this.filterPadding,
  this.titleSpan,
  this.cellPadding,
  this.textAlign = PlutoColumnTextAlign.start,
  this.titleTextAlign = PlutoColumnTextAlign.start,
  this.frozen = PlutoColumnFrozen.none,
  this.sort = PlutoColumnSort.none,
  this.formatter,
  this.applyFormatterInEditing = false,
  this.backgroundColor,
  this.renderer,
  this.footerRenderer,
  this.suppressedAutoSize = false,
  this.enableColumnDrag = true,
  this.enableRowDrag = false,
  this.enableRowChecked = false,
  this.enableSorting = true,
  this.enableContextMenu = true,
  this.enableDropToResize = true,
  this.enableFilterMenuItem = true,
  this.enableHideColumnMenuItem = true,
  this.enableSetColumnsMenuItem = true,
  this.enableAutoEditing = false,
  this.enableEditingMode = true,
  this.hide = false,
})  : _key = UniqueKey(),
      _checkReadOnly = checkReadOnly;