mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-17 02:25:16 +00:00
push integer step dialog design
This commit is contained in:
@ -130,12 +130,18 @@ class SceneOperationalValue {
|
||||
final dynamic value;
|
||||
final String? description;
|
||||
final String? iconValue;
|
||||
final double? minValue;
|
||||
final double? maxValue;
|
||||
final double? stepValue;
|
||||
|
||||
SceneOperationalValue({
|
||||
required this.icon,
|
||||
required this.value,
|
||||
this.description,
|
||||
this.iconValue,
|
||||
this.minValue,
|
||||
this.maxValue,
|
||||
this.stepValue,
|
||||
});
|
||||
|
||||
SceneOperationalValue copyWith({
|
||||
@ -143,12 +149,18 @@ class SceneOperationalValue {
|
||||
dynamic value,
|
||||
String? description,
|
||||
String? iconValue,
|
||||
double? minValue,
|
||||
double? maxValue,
|
||||
double? stepValue,
|
||||
}) {
|
||||
return SceneOperationalValue(
|
||||
icon: icon ?? this.icon,
|
||||
value: value ?? this.value,
|
||||
description: description ?? this.description,
|
||||
iconValue: iconValue ?? this.iconValue,
|
||||
minValue: minValue ?? this.minValue,
|
||||
maxValue: maxValue ?? this.maxValue,
|
||||
stepValue: stepValue ?? this.stepValue,
|
||||
);
|
||||
}
|
||||
|
||||
@ -157,7 +169,10 @@ class SceneOperationalValue {
|
||||
'icon': icon,
|
||||
'value': value,
|
||||
'description': description,
|
||||
'iconValue': iconValue
|
||||
'iconValue': iconValue,
|
||||
'minValue': minValue,
|
||||
'maxValue': maxValue,
|
||||
'stepValue': stepValue
|
||||
};
|
||||
}
|
||||
|
||||
@ -167,6 +182,9 @@ class SceneOperationalValue {
|
||||
value: map['value'],
|
||||
description: map['description'],
|
||||
iconValue: map['iconValue'] ?? '',
|
||||
minValue: map['minValue'],
|
||||
maxValue: map['maxValue'],
|
||||
stepValue: map['stepValue'],
|
||||
);
|
||||
}
|
||||
|
||||
@ -177,7 +195,7 @@ class SceneOperationalValue {
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'StaticFunctionOperationHelper(icon: $icon, value: $value, description: $description, iconValue: $iconValue)';
|
||||
'StaticFunctionOperationHelper(icon: $icon, value: $value, description: $description, iconValue: $iconValue, minValue: $minValue, maxValue: $maxValue, stepValue: $stepValue)';
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
@ -187,6 +205,9 @@ class SceneOperationalValue {
|
||||
other.icon == icon &&
|
||||
other.description == description &&
|
||||
other.iconValue == iconValue &&
|
||||
other.minValue == minValue &&
|
||||
other.maxValue == maxValue &&
|
||||
other.stepValue == stepValue &&
|
||||
other.value == value;
|
||||
}
|
||||
|
||||
@ -196,5 +217,8 @@ class SceneOperationalValue {
|
||||
value.hashCode ^
|
||||
description.hashCode ^
|
||||
iconValue.hashCode ^
|
||||
minValue.hashCode ^
|
||||
maxValue.hashCode ^
|
||||
stepValue.hashCode ^
|
||||
description.hashCode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user