Skip to content

Commit 1f17c20

Browse files
committed
Added data grid changes
1 parent 04c7373 commit 1f17c20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/samples/datagrid/datagridsource/orderinfo_datagridsource.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class OrderInfoDataGridSource extends DataGridSource {
1717
this.orderDataCount,
1818
this.ordersCollection,
1919
this.culture}) {
20-
orders = getOrders(orders, orderDataCount ?? 100, culture: culture ?? '');
20+
orders = ordersCollection ??
21+
getOrders(orders, orderDataCount ?? 100, culture: culture ?? '');
2122
currencySymbol = getCurrencySymbol();
2223
buildDataGridRows();
2324
}
@@ -44,10 +45,10 @@ class OrderInfoDataGridSource extends DataGridSource {
4445
/// Instance of DataGridRow.
4546
List<DataGridRow> dataGridRows = <DataGridRow>[];
4647

47-
/// Currency symbol for culture
48+
/// Currency symbol for culture.
4849
String currencySymbol = '';
4950

50-
/// Building DataGridRows
51+
/// Building DataGridRows.
5152
void buildDataGridRows() {
5253
dataGridRows = isWebOrDesktop
5354
? orders.map<DataGridRow>((OrderInfo order) {

0 commit comments

Comments
 (0)