currentCellStyle property Null safety

DataGridCurrentCellStyle currentCellStyle
final

Defines the default configuration of current cell in SfDataGrid.

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SfTheme(
        data: SfThemeData(
          dataGridThemeData: SfDataGridThemeData(
            currentCellStyle: DataGridCurrentCellStyle(
              borderColor: Colors.red, borderWidth: 2
            )
          )
        ),
        child: SfDataGrid(),
      ),
    )
  );
}

Implementation

final DataGridCurrentCellStyle currentCellStyle;