rowColorCallback property
rowColorCallback can change the row background color dynamically according to the state.
Implement a callback that returns a Color by referring to the value passed as a callback argument. An exception should be handled when a column is deleted.
rowColorCallback = (PlutoRowColorContext rowColorContext) {
return rowColorContext.row.cells['column2']?.value == 'green'
? const Color(0xFFE2F6DF)
: Colors.white;
}
Implementation
final PlutoRowColorCallback? rowColorCallback;