data property Null safety

SfDataGridThemeData data
final

Specifies the color and typography values for descendant SfDataGrid widgets.

Widget build(BuildContext context) {
  return Scaffold(
    body: SfDataGridTheme(
      data: SfDataGridThemeData(
        brightness: Brightness.dark,
      ),
      child: SfDataGrid(columns: [],
      source: _dataGridSource)
    ),
  );
}

Implementation

final SfDataGridThemeData data;