push add ac fucntions and handle doplicate adding to the then or if items

This commit is contained in:
ashrafzarkanisala
2024-11-19 00:54:43 +03:00
parent 54143b3ba9
commit 57b8f6b03e
60 changed files with 1392 additions and 24 deletions

View File

@ -0,0 +1,17 @@
abstract class DeviceFunction<T> {
final String deviceId;
final String deviceName;
final String code;
final String operationName;
final String icon;
DeviceFunction({
required this.deviceId,
required this.deviceName,
required this.code,
required this.operationName,
required this.icon,
});
T execute(T currentStatus, dynamic newValue);
}