control method
Wraps a custom in-cell control so mouse/touch interaction keeps the grid viewport stable while FdcFieldContext.setValue or FdcFieldContext.setValueOf writes through the grid pipeline.
This is recommended for custom buttons, checkboxes, switches, picker buttons, and similar controls embedded inside FdcCustomColumn cells.
Implementation
Widget control(Widget child, {bool enabled = true}) {
return Listener(
onPointerDown: enabled ? handleControlPointerDown : null,
child: child,
);
}