PlutoColumn constructor
PlutoColumn({
- required String title,
- required String field,
- required PlutoColumnType type,
- bool readOnly = false,
- PlutoColumnCheckReadOnly? checkReadOnly,
- double width = PlutoGridSettings.columnWidth,
- double minWidth = PlutoGridSettings.minColumnWidth,
- EdgeInsets? titlePadding,
- EdgeInsets? filterPadding,
- InlineSpan? titleSpan,
- EdgeInsets? cellPadding,
- PlutoColumnTextAlign textAlign = PlutoColumnTextAlign.start,
- PlutoColumnTextAlign titleTextAlign = PlutoColumnTextAlign.start,
- PlutoColumnFrozen frozen = PlutoColumnFrozen.none,
- PlutoColumnSort sort = PlutoColumnSort.none,
- PlutoColumnValueFormatter? formatter,
- bool applyFormatterInEditing = false,
- Color? backgroundColor,
- PlutoColumnRenderer? renderer,
- bool suppressedAutoSize = false,
- bool enableColumnDrag = true,
- bool enableRowDrag = false,
- bool enableRowChecked = false,
- bool enableSorting = true,
- bool enableContextMenu = true,
- bool enableDropToResize = true,
- bool enableFilterMenuItem = true,
- bool enableHideColumnMenuItem = true,
- bool enableSetColumnsMenuItem = true,
- bool enableAutoEditing = false,
- bool? enableEditingMode = true,
- 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;