FFRadioButton constructor

FFRadioButton({
  1. @Deprecated('This field is deprecated.') Iterable<String>? legacyOptions,
  2. FFDimensions? dimensions,
  3. FFColor? legacyRadioButtonColor,
  4. double? legacyOptionHeight,
  5. FFText? textStyle,
  6. FFPadding? textPadding,
  7. FFRadioButton_FFRadioButtonPosition? buttonPosition,
  8. FFAxis? direction,
  9. bool? legacyToggleable,
  10. FFWrapAlignment? horizontalAlignment,
  11. FFWrapCrossAlignment? verticalAlignment,
  12. FFColor? legacyInactiveRadioButtonColor,
  13. FFText? selectedTextStyle,
  14. bool? selectedStyleIsDifferent,
  15. @Deprecated('This field is deprecated.') String? legacyInitialValue,
  16. FFText? initialValue,
  17. @Deprecated('This field is deprecated.') Iterable<FFText>? legacyOption,
  18. FFDisable? disabled,
  19. FFDim? optionWidth,
  20. FFColorValue? radioButtonColorValue,
  21. FFDoubleValue? optionHeightValue,
  22. FFTextOptionsValue? options,
  23. FFBooleanValue? toggleableValue,
  24. FFColorValue? inactiveRadioButtonColorValue,
  25. FFDoubleValue? optionSpacingValue,
})

Implementation

factory FFRadioButton({
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<$core.String>? legacyOptions,
  FFDimensions? dimensions,
  FFColor? legacyRadioButtonColor,
  $core.double? legacyOptionHeight,
  FFText? textStyle,
  FFPadding? textPadding,
  FFRadioButton_FFRadioButtonPosition? buttonPosition,
  FFAxis? direction,
  $core.bool? legacyToggleable,
  FFWrapAlignment? horizontalAlignment,
  FFWrapCrossAlignment? verticalAlignment,
  FFColor? legacyInactiveRadioButtonColor,
  FFText? selectedTextStyle,
  $core.bool? selectedStyleIsDifferent,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyInitialValue,
  FFText? initialValue,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFText>? legacyOption,
  FFDisable? disabled,
  FFDim? optionWidth,
  FFColorValue? radioButtonColorValue,
  FFDoubleValue? optionHeightValue,
  FFTextOptionsValue? options,
  FFBooleanValue? toggleableValue,
  FFColorValue? inactiveRadioButtonColorValue,
  FFDoubleValue? optionSpacingValue,
}) {
  final result = create();
  if (legacyOptions != null) result.legacyOptions.addAll(legacyOptions);
  if (dimensions != null) result.dimensions = dimensions;
  if (legacyRadioButtonColor != null)
    result.legacyRadioButtonColor = legacyRadioButtonColor;
  if (legacyOptionHeight != null)
    result.legacyOptionHeight = legacyOptionHeight;
  if (textStyle != null) result.textStyle = textStyle;
  if (textPadding != null) result.textPadding = textPadding;
  if (buttonPosition != null) result.buttonPosition = buttonPosition;
  if (direction != null) result.direction = direction;
  if (legacyToggleable != null) result.legacyToggleable = legacyToggleable;
  if (horizontalAlignment != null)
    result.horizontalAlignment = horizontalAlignment;
  if (verticalAlignment != null) result.verticalAlignment = verticalAlignment;
  if (legacyInactiveRadioButtonColor != null)
    result.legacyInactiveRadioButtonColor = legacyInactiveRadioButtonColor;
  if (selectedTextStyle != null) result.selectedTextStyle = selectedTextStyle;
  if (selectedStyleIsDifferent != null)
    result.selectedStyleIsDifferent = selectedStyleIsDifferent;
  if (legacyInitialValue != null)
    result.legacyInitialValue = legacyInitialValue;
  if (initialValue != null) result.initialValue = initialValue;
  if (legacyOption != null) result.legacyOption.addAll(legacyOption);
  if (disabled != null) result.disabled = disabled;
  if (optionWidth != null) result.optionWidth = optionWidth;
  if (radioButtonColorValue != null)
    result.radioButtonColorValue = radioButtonColorValue;
  if (optionHeightValue != null) result.optionHeightValue = optionHeightValue;
  if (options != null) result.options = options;
  if (toggleableValue != null) result.toggleableValue = toggleableValue;
  if (inactiveRadioButtonColorValue != null)
    result.inactiveRadioButtonColorValue = inactiveRadioButtonColorValue;
  if (optionSpacingValue != null)
    result.optionSpacingValue = optionSpacingValue;
  return result;
}