Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,35 @@ typedef GroupChangedCallback = void Function(DataGridGroupChangedDetails group);
/// constructor of each [DataGridRow] object.
class DataGridRow {
/// Creates [DataGridRow] for the [SfDataGrid].
const DataGridRow({required List<DataGridCell> cells}) : _cells = cells;
DataGridRow({
required List<DataGridCell> cells,
List<Widget>? widgets,
}) : _cells = cells,
_widgets = widgets ?? <Widget>[];

/// The data for this row.
///
/// There must be exactly as many cells as there are columns in the
/// [SfDataGrid].
final List<DataGridCell> _cells;

/// The data for this row.
///
/// There must be exactly as many widgets as there are columns in the
/// [SfDataGrid].
final List<Widget> _widgets;

/// Returns the collection of [DataGridCell] which is created for
/// [DataGridRow].
List<DataGridCell> getCells() {
return _cells;
}

/// Returns the list of [Widget]s which is created for
/// [DataGridRow].
List<Widget> getWidgets() {
return _widgets;
}
}

/// The data for a cell of a [SfDataGrid].
Expand Down