mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Refactor constructor syntax for Gateway functions to use initializer list
This commit is contained in:
@ -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: '',
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user