FFRadioButton constructor
FFRadioButton({
- @Deprecated('This field is deprecated.') Iterable<
String> ? legacyOptions, - FFDimensions? dimensions,
- FFColor? legacyRadioButtonColor,
- double? legacyOptionHeight,
- FFText? textStyle,
- FFPadding? textPadding,
- FFRadioButton_FFRadioButtonPosition? buttonPosition,
- FFAxis? direction,
- bool? legacyToggleable,
- FFWrapAlignment? horizontalAlignment,
- FFWrapCrossAlignment? verticalAlignment,
- FFColor? legacyInactiveRadioButtonColor,
- FFText? selectedTextStyle,
- bool? selectedStyleIsDifferent,
- @Deprecated('This field is deprecated.') String? legacyInitialValue,
- FFText? initialValue,
- @Deprecated('This field is deprecated.') Iterable<
FFText> ? legacyOption, - FFDisable? disabled,
- FFDim? optionWidth,
- FFColorValue? radioButtonColorValue,
- FFDoubleValue? optionHeightValue,
- FFTextOptionsValue? options,
- FFBooleanValue? toggleableValue,
- FFColorValue? inactiveRadioButtonColorValue,
- 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;
}