View as widget refactoring

This commit is contained in:
Yegor Vialov
2018-10-21 00:30:58 +03:00
parent ba09c36bd2
commit b83006e2c3
5 changed files with 60 additions and 110 deletions

View File

@ -62,6 +62,7 @@ class Entity {
String get unitOfMeasurement => attributes["unit_of_measurement"] ?? "";
List get childEntityIds => attributes["entity_id"] ?? [];
String get lastUpdated => _getLastUpdatedFormatted();
bool get isHidden => attributes["hidden"] ?? false;
Entity(Map rawData) {
update(rawData);