FFDropDown constructor

FFDropDown({
  1. @Deprecated('This field is deprecated.') String? legacyInitialOption,
  2. @Deprecated('This field is deprecated.') Iterable<String>? legacyOptions,
  3. FFDimensions? dimensions,
  4. FFIcon? legacyIcon,
  5. FFColor? legacyFillColor,
  6. double? legacyElevation,
  7. double? legacyBorderRadius,
  8. FFColor? legacyBorderColor,
  9. double? legacyBorderWidth,
  10. FFText? textStyle,
  11. FFPadding? margin,
  12. bool? legacyHidesUnderline,
  13. @Deprecated('This field is deprecated.') String? legacyHintText,
  14. FFText? initialOption,
  15. @Deprecated('This field is deprecated.') Iterable<FFText>? legacyOptionsLabels,
  16. FFText? hintText,
  17. @Deprecated('This field is deprecated.') Iterable<FFParameterValue>? legacyOptionsValues,
  18. bool? optionsHasKeyValues,
  19. FFParameter? valueType,
  20. FFParameterValue? legacyInitialOptionKeyValue,
  21. FFDisable? disabled,
  22. bool? isSearchable,
  23. FFText? searchHintText,
  24. FFColor? legacySearchCursorColor,
  25. bool? isMultiSelect,
  26. bool? fixPosition,
  27. FFDim? maxHeight,
  28. FFText? searchTextStyle,
  29. FFOffset? menuOffset,
  30. FFText? label,
  31. FFColorValue? fillColorValue,
  32. FFDoubleValue? elevationValue,
  33. FFDoubleValue? borderRadiusValue,
  34. FFColorValue? borderColorValue,
  35. FFDoubleValue? borderWidthValue,
  36. FFBooleanValue? hidesUnderlineValue,
  37. FFColorValue? searchCursorColorValue,
  38. FFIconValue? iconValue,
  39. FFFormOptionsValue? initialOptionKeyValue,
  40. FFFormOptionsValue? optionsLabels,
  41. FFFormOptionsValue? optionsValues,
  42. FFDropDownTesting? testing,
  43. FFColorValue? focusBorderColorValue,
})

Implementation

factory FFDropDown({
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyInitialOption,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<$core.String>? legacyOptions,
  FFDimensions? dimensions,
  FFIcon? legacyIcon,
  FFColor? legacyFillColor,
  $core.double? legacyElevation,
  $core.double? legacyBorderRadius,
  FFColor? legacyBorderColor,
  $core.double? legacyBorderWidth,
  FFText? textStyle,
  FFPadding? margin,
  $core.bool? legacyHidesUnderline,
  @$core.Deprecated('This field is deprecated.') $core.String? legacyHintText,
  FFText? initialOption,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFText>? legacyOptionsLabels,
  FFText? hintText,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFParameterValue>? legacyOptionsValues,
  $core.bool? optionsHasKeyValues,
  FFParameter? valueType,
  FFParameterValue? legacyInitialOptionKeyValue,
  FFDisable? disabled,
  $core.bool? isSearchable,
  FFText? searchHintText,
  FFColor? legacySearchCursorColor,
  $core.bool? isMultiSelect,
  $core.bool? fixPosition,
  FFDim? maxHeight,
  FFText? searchTextStyle,
  FFOffset? menuOffset,
  FFText? label,
  FFColorValue? fillColorValue,
  FFDoubleValue? elevationValue,
  FFDoubleValue? borderRadiusValue,
  FFColorValue? borderColorValue,
  FFDoubleValue? borderWidthValue,
  FFBooleanValue? hidesUnderlineValue,
  FFColorValue? searchCursorColorValue,
  FFIconValue? iconValue,
  FFFormOptionsValue? initialOptionKeyValue,
  FFFormOptionsValue? optionsLabels,
  FFFormOptionsValue? optionsValues,
  FFDropDownTesting? testing,
  FFColorValue? focusBorderColorValue,
}) {
  final result = create();
  if (legacyInitialOption != null)
    result.legacyInitialOption = legacyInitialOption;
  if (legacyOptions != null) result.legacyOptions.addAll(legacyOptions);
  if (dimensions != null) result.dimensions = dimensions;
  if (legacyIcon != null) result.legacyIcon = legacyIcon;
  if (legacyFillColor != null) result.legacyFillColor = legacyFillColor;
  if (legacyElevation != null) result.legacyElevation = legacyElevation;
  if (legacyBorderRadius != null)
    result.legacyBorderRadius = legacyBorderRadius;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (textStyle != null) result.textStyle = textStyle;
  if (margin != null) result.margin = margin;
  if (legacyHidesUnderline != null)
    result.legacyHidesUnderline = legacyHidesUnderline;
  if (legacyHintText != null) result.legacyHintText = legacyHintText;
  if (initialOption != null) result.initialOption = initialOption;
  if (legacyOptionsLabels != null)
    result.legacyOptionsLabels.addAll(legacyOptionsLabels);
  if (hintText != null) result.hintText = hintText;
  if (legacyOptionsValues != null)
    result.legacyOptionsValues.addAll(legacyOptionsValues);
  if (optionsHasKeyValues != null)
    result.optionsHasKeyValues = optionsHasKeyValues;
  if (valueType != null) result.valueType = valueType;
  if (legacyInitialOptionKeyValue != null)
    result.legacyInitialOptionKeyValue = legacyInitialOptionKeyValue;
  if (disabled != null) result.disabled = disabled;
  if (isSearchable != null) result.isSearchable = isSearchable;
  if (searchHintText != null) result.searchHintText = searchHintText;
  if (legacySearchCursorColor != null)
    result.legacySearchCursorColor = legacySearchCursorColor;
  if (isMultiSelect != null) result.isMultiSelect = isMultiSelect;
  if (fixPosition != null) result.fixPosition = fixPosition;
  if (maxHeight != null) result.maxHeight = maxHeight;
  if (searchTextStyle != null) result.searchTextStyle = searchTextStyle;
  if (menuOffset != null) result.menuOffset = menuOffset;
  if (label != null) result.label = label;
  if (fillColorValue != null) result.fillColorValue = fillColorValue;
  if (elevationValue != null) result.elevationValue = elevationValue;
  if (borderRadiusValue != null) result.borderRadiusValue = borderRadiusValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  if (hidesUnderlineValue != null)
    result.hidesUnderlineValue = hidesUnderlineValue;
  if (searchCursorColorValue != null)
    result.searchCursorColorValue = searchCursorColorValue;
  if (iconValue != null) result.iconValue = iconValue;
  if (initialOptionKeyValue != null)
    result.initialOptionKeyValue = initialOptionKeyValue;
  if (optionsLabels != null) result.optionsLabels = optionsLabels;
  if (optionsValues != null) result.optionsValues = optionsValues;
  if (testing != null) result.testing = testing;
  if (focusBorderColorValue != null)
    result.focusBorderColorValue = focusBorderColorValue;
  return result;
}