This repository has been archived on 2025-04-22. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/lib/entity_class/entity_wrapper.class.dart

23 lines
395 B
Dart

part of '../main.dart';
class EntityWrapper {
String displayName;
String icon;
String tapAction;
String holdAction;
Entity entity;
EntityWrapper({
this.entity,
String icon,
String displayName,
this.tapAction: EntityTapAction.moreInfo,
this.holdAction
}) {
this.icon = icon ?? entity.icon;
this.displayName = displayName ?? entity.displayName;
}
}