File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/samples/datagrid/datagridsource Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments