ModuleConfig_CannedMessageConfig constructor

ModuleConfig_CannedMessageConfig({
  1. bool? rotary1Enabled,
  2. int? inputbrokerPinA,
  3. int? inputbrokerPinB,
  4. int? inputbrokerPinPress,
  5. ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCw,
  6. ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventCcw,
  7. ModuleConfig_CannedMessageConfig_InputEventChar? inputbrokerEventPress,
  8. bool? updown1Enabled,
  9. @Deprecated('This field is deprecated.') bool? enabled,
  10. @Deprecated('This field is deprecated.') String? allowInputSource,
  11. 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;
}