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 {
17
17
this .orderDataCount,
18
18
this .ordersCollection,
19
19
this .culture}) {
20
- orders = getOrders (orders, orderDataCount ?? 100 , culture: culture ?? '' );
20
+ orders = ordersCollection ??
21
+ getOrders (orders, orderDataCount ?? 100 , culture: culture ?? '' );
21
22
currencySymbol = getCurrencySymbol ();
22
23
buildDataGridRows ();
23
24
}
@@ -44,10 +45,10 @@ class OrderInfoDataGridSource extends DataGridSource {
44
45
/// Instance of DataGridRow.
45
46
List <DataGridRow > dataGridRows = < DataGridRow > [];
46
47
47
- /// Currency symbol for culture
48
+ /// Currency symbol for culture.
48
49
String currencySymbol = '' ;
49
50
50
- /// Building DataGridRows
51
+ /// Building DataGridRows.
51
52
void buildDataGridRows () {
52
53
dataGridRows = isWebOrDesktop
53
54
? orders.map <DataGridRow >((OrderInfo order) {
You can’t perform that action at this time.
0 commit comments