Refactor constructor syntax for Gateway functions to use initializer list

This commit is contained in:
Faris Armoush
2025-04-09 10:57:10 +03:00
parent fda96025e9
commit 9c97e2879a
2 changed files with 15 additions and 15 deletions

View File

@ -81,11 +81,8 @@ class _GatewayDialogState extends State<GatewayDialog> {
final selectedGatewayFunctions = _gatewayFunctions.firstWhere(
(f) => f.code == selectedFunction,
orElse: () => GatewaySwitchAlarmSound(
code: selectedFunction ?? '',
deviceId: '',
deviceName: '',
operationName: '',
icon: '',
type: '',
),
);