formatted all files.

This commit is contained in:
Faris Armoush
2025-06-12 15:33:32 +03:00
parent 29959f567e
commit 04250ebc98
474 changed files with 5425 additions and 4338 deletions

View File

@ -24,8 +24,7 @@ class FlushPresenceDelayFunction extends FlushFunctions {
required super.deviceId,
required super.deviceName,
required super.type,
}) :
super(
}) : super(
code: FlushMountedPresenceSensorModel.codePresenceState,
operationName: 'Presence State',
icon: Assets.presenceStateIcon,
@ -37,7 +36,7 @@ class FlushPresenceDelayFunction extends FlushFunctions {
FlushOperationalValue(
icon: Assets.nobodyTime,
description: 'None',
value: "none",
value: 'none',
),
FlushOperationalValue(
icon: Assets.presenceStateIcon,
@ -49,8 +48,11 @@ class FlushPresenceDelayFunction extends FlushFunctions {
}
class FlushSensiReduceFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
FlushSensiReduceFunction({
@ -79,8 +81,11 @@ class FlushSensiReduceFunction extends FlushFunctions {
}
class FlushNoneDelayFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final String unit;
FlushNoneDelayFunction({
@ -109,8 +114,11 @@ class FlushNoneDelayFunction extends FlushFunctions {
}
class FlushIlluminanceFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
FlushIlluminanceFunction({
@ -128,11 +136,11 @@ class FlushIlluminanceFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
List<FlushOperationalValue> values = [];
for (int lux = min.toInt(); lux <= max; lux += step.toInt()) {
final values = <FlushOperationalValue>[];
for (var lux = min.toInt(); lux <= max; lux += step.toInt()) {
values.add(FlushOperationalValue(
icon: Assets.IlluminanceIcon,
description: "$lux Lux",
description: '$lux Lux',
value: lux,
));
}
@ -141,8 +149,11 @@ class FlushIlluminanceFunction extends FlushFunctions {
}
class FlushOccurDistReduceFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
FlushOccurDistReduceFunction({
@ -172,8 +183,11 @@ class FlushOccurDistReduceFunction extends FlushFunctions {
// ==== then functions ====
class FlushSensitivityFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
FlushSensitivityFunction({
@ -202,9 +216,13 @@ class FlushSensitivityFunction extends FlushFunctions {
}
class FlushNearDetectionFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushNearDetectionFunction({
@ -224,7 +242,7 @@ class FlushNearDetectionFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
final values = <FlushOperationalValue>[];
for (var value = min.toDouble(); value <= max; value += step) {
for (var value = min; value <= max; value += step) {
values.add(FlushOperationalValue(
icon: Assets.nobodyTime,
description: '$value $unit',
@ -236,9 +254,13 @@ class FlushNearDetectionFunction extends FlushFunctions {
}
class FlushMaxDetectDistFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushMaxDetectDistFunction({
@ -270,9 +292,13 @@ class FlushMaxDetectDistFunction extends FlushFunctions {
}
class FlushTargetConfirmTimeFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushTargetConfirmTimeFunction({
@ -292,7 +318,7 @@ class FlushTargetConfirmTimeFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
final values = <FlushOperationalValue>[];
for (var value = min.toDouble(); value <= max; value += step) {
for (var value = min; value <= max; value += step) {
values.add(FlushOperationalValue(
icon: Assets.nobodyTime,
description: '$value $unit',
@ -304,9 +330,13 @@ class FlushTargetConfirmTimeFunction extends FlushFunctions {
}
class FlushDisappeDelayFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushDisappeDelayFunction({
@ -326,7 +356,7 @@ class FlushDisappeDelayFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
final values = <FlushOperationalValue>[];
for (var value = min.toDouble(); value <= max; value += step) {
for (var value = min; value <= max; value += step) {
values.add(FlushOperationalValue(
icon: Assets.nobodyTime,
description: '$value $unit',
@ -338,9 +368,13 @@ class FlushDisappeDelayFunction extends FlushFunctions {
}
class FlushIndentLevelFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushIndentLevelFunction({
@ -360,7 +394,7 @@ class FlushIndentLevelFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
final values = <FlushOperationalValue>[];
for (var value = min.toDouble(); value <= max; value += step) {
for (var value = min; value <= max; value += step) {
values.add(FlushOperationalValue(
icon: Assets.nobodyTime,
description: '$value $unit',
@ -372,9 +406,13 @@ class FlushIndentLevelFunction extends FlushFunctions {
}
class FlushTriggerLevelFunction extends FlushFunctions {
@override
final double min;
@override
final double max;
@override
final double step;
@override
final String unit;
FlushTriggerLevelFunction({
@ -394,7 +432,7 @@ class FlushTriggerLevelFunction extends FlushFunctions {
@override
List<FlushOperationalValue> getOperationalValues() {
final values = <FlushOperationalValue>[];
for (var value = min.toDouble(); value <= max; value += step) {
for (var value = min; value <= max; value += step) {
values.add(FlushOperationalValue(
icon: Assets.nobodyTime,
description: '$value $unit',