Resolves #146 Lock support

This commit is contained in:
Yegor Vialov
2018-11-23 19:18:17 +02:00
parent fc8f2f200f
commit 809a1a1c8c
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,12 @@
part of '../main.dart';
class LockEntity extends Entity {
LockEntity(Map rawData) : super(rawData);
bool get isLocked => state == "locked";
@override
Widget _buildStatePart(BuildContext context) {
return LockStateWidget();
}
}