View entities in entityCollection. Child entities in parse

This commit is contained in:
Yegor Vialov
2018-10-21 14:43:52 +03:00
parent fafa8f43f4
commit 9ad6d92ccd
4 changed files with 28 additions and 41 deletions

View File

@ -38,7 +38,7 @@ class HomeAssistant {
String get locationName => _instanceConfig["location_name"] ?? "";
String get userName => _userName ?? locationName;
String get userAvatarText => userName.length > 0 ? userName[0] : "";
int get viewsCount => _entities.viewList.length ?? 0;
int get viewsCount => _entities.views.length ?? 0;
EntityCollection get entities => _entities;