Skip to main content

Boolean Column

FdcBooleanColumn is the standard column type for true/false values. It can render as a checkbox or as a switch-style control.

Boolean column sample
Loading FDC sample…
FdcGrid(
dataSet: taskRows,
options: const FdcGridOptions(autoEdit: true),
columns: const [
FdcTextColumn(fieldName: 'task', width: 240),
FdcBooleanColumn(fieldName: 'approved', width: 110),
FdcBooleanColumn(
fieldName: 'notifications',
width: 135,
control: FdcBooleanControl.switchControl,
),
],
);

Key characteristics

  • Binds to FdcBooleanField.
  • Supports checkbox or switch rendering through control.
  • Keeps normal sorting, filtering, and dataset editing behavior.

Example

const FdcBooleanColumn<dynamic>(
fieldName: 'notifications',
label: 'Notifications',
control: FdcBooleanControl.switchControl,
)