ModuleConfig_CannedMessageConfig constructor
ModuleConfig_CannedMessageConfig({
- bool? rotary1Enabled,
- int? inputbrokerPinA,
- int? inputbrokerPinB,
- int? inputbrokerPinPress,
- ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCw,
- ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCcw,
- ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventPress,
- bool? updown1Enabled,
- @Deprecated('This field is deprecated.') bool? enabled,
- @Deprecated('This field is deprecated.') String? allowInputSource,
- bool? sendBell,
Implementation
factory ModuleConfig_CannedMessageConfig({
$core.bool? rotary1Enabled,
$core.int? inputbrokerPinA,
$core.int? inputbrokerPinB,
$core.int? inputbrokerPinPress,
ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCw,
ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCcw,
ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventPress,
$core.bool? updown1Enabled,
@$core.Deprecated('This field is deprecated.') $core.bool? enabled,
@$core.Deprecated('This field is deprecated.')
$core.String? allowInputSource,
$core.bool? sendBell,
}) {
final result = create();
if (rotary1Enabled != null) result.rotary1Enabled = rotary1Enabled;
if (inputbrokerPinA != null) result.inputbrokerPinA = inputbrokerPinA;
if (inputbrokerPinB != null) result.inputbrokerPinB = inputbrokerPinB;
if (inputbrokerPinPress != null)
result.inputbrokerPinPress = inputbrokerPinPress;
if (inputbrokerEventCw != null)
result.inputbrokerEventCw = inputbrokerEventCw;
if (inputbrokerEventCcw != null)
result.inputbrokerEventCcw = inputbrokerEventCcw;
if (inputbrokerEventPress != null)
result.inputbrokerEventPress = inputbrokerEventPress;
if (updown1Enabled != null) result.updown1Enabled = updown1Enabled;
if (enabled != null) result.enabled = enabled;
if (allowInputSource != null) result.allowInputSource = allowInputSource;
if (sendBell != null) result.sendBell = sendBell;
return result;
}