Config_DeviceConfig constructor
Config_DeviceConfig({
- Config_DeviceConfig_Role? role,
- @Deprecated('This field is deprecated.') bool? serialEnabled,
- int? buttonGpio,
- int? buzzerGpio,
- Config_DeviceConfig_RebroadcastMode? rebroadcastMode,
- int? nodeInfoBroadcastSecs,
- bool? doubleTapAsButtonPress,
- @Deprecated('This field is deprecated.') bool? isManaged,
- bool? disableTripleClick,
- String? tzdef,
- bool? ledHeartbeatDisabled,
- Config_DeviceConfig_BuzzerMode? buzzerMode,
Implementation
factory Config_DeviceConfig({
Config_DeviceConfig_Role? role,
@$core.Deprecated('This field is deprecated.') $core.bool? serialEnabled,
$core.int? buttonGpio,
$core.int? buzzerGpio,
Config_DeviceConfig_RebroadcastMode? rebroadcastMode,
$core.int? nodeInfoBroadcastSecs,
$core.bool? doubleTapAsButtonPress,
@$core.Deprecated('This field is deprecated.') $core.bool? isManaged,
$core.bool? disableTripleClick,
$core.String? tzdef,
$core.bool? ledHeartbeatDisabled,
Config_DeviceConfig_BuzzerMode? buzzerMode,
}) {
final result = create();
if (role != null) result.role = role;
if (serialEnabled != null) result.serialEnabled = serialEnabled;
if (buttonGpio != null) result.buttonGpio = buttonGpio;
if (buzzerGpio != null) result.buzzerGpio = buzzerGpio;
if (rebroadcastMode != null) result.rebroadcastMode = rebroadcastMode;
if (nodeInfoBroadcastSecs != null)
result.nodeInfoBroadcastSecs = nodeInfoBroadcastSecs;
if (doubleTapAsButtonPress != null)
result.doubleTapAsButtonPress = doubleTapAsButtonPress;
if (isManaged != null) result.isManaged = isManaged;
if (disableTripleClick != null)
result.disableTripleClick = disableTripleClick;
if (tzdef != null) result.tzdef = tzdef;
if (ledHeartbeatDisabled != null)
result.ledHeartbeatDisabled = ledHeartbeatDisabled;
if (buzzerMode != null) result.buzzerMode = buzzerMode;
return result;
}