.empty() -> []

Turns out .empty() creates an empty list which is fixed length!
This commit is contained in:
Oliver 2021-07-13 00:13:38 +10:00
parent dd39b98ae9
commit 40613c9c36
11 changed files with 16 additions and 16 deletions

View file

@ -128,7 +128,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
_LocationDisplayState(this.location) {}
List<InvenTreeStockLocation> _sublocations = List<InvenTreeStockLocation>.empty();
List<InvenTreeStockLocation> _sublocations = [];
String _locationFilter = '';