.empty() -> []

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

No files matched your search

+2 -2
View File
@@ -133,7 +133,7 @@ class UserProfileDBManager {
final profiles = await store.find(await _db);
List<UserProfile> profileList = new List<UserProfile>.empty();
List<UserProfile> profileList = [];
for (int idx = 0; idx < profiles.length; idx++) {
@@ -158,7 +158,7 @@ class UserProfileDBManager {
final profiles = await store.find(await _db);
List<UserProfile> profileList = new List<UserProfile>.empty();
List<UserProfile> profileList = [];
for (int idx = 0; idx < profiles.length; idx++) {