mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
.empty() -> []
Turns out .empty() creates an empty list which is fixed length!
This commit is contained in:
parent
dd39b98ae9
commit
40613c9c36
11 changed files with 16 additions and 16 deletions
|
|
@ -138,7 +138,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
// TODO
|
||||
}
|
||||
|
||||
List<InvenTreePartTestTemplate> testTemplates = List<InvenTreePartTestTemplate>.empty();
|
||||
List<InvenTreePartTestTemplate> testTemplates = [];
|
||||
|
||||
int get testTemplateCount => testTemplates.length;
|
||||
|
||||
|
|
@ -159,7 +159,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||
});
|
||||
}
|
||||
|
||||
List<InvenTreeStockItemTestResult> testResults = List<InvenTreeStockItemTestResult>.empty();
|
||||
List<InvenTreeStockItemTestResult> testResults = [];
|
||||
|
||||
int get testResultCount => testResults.length;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue