FFInputDecoration constructor

FFInputDecoration({
  1. FFInputDecoration_InputBorderType? inputBorderType,
  2. @Deprecated('This field is deprecated.') Int64? legacyColor,
  3. double? legacyBorderWidth,
  4. FFBorderRadius? borderRadius,
  5. @Deprecated('This field is deprecated.') String? legacyHintText,
  6. @Deprecated('This field is deprecated.') String? legacyLabelText,
  7. FFColor? legacyBorderColor,
  8. bool? legacyDense,
  9. FFPadding? contentPadding,
  10. FFColor? legacyFillColor,
  11. bool? legacyFilled,
  12. FFText? hintStyle,
  13. FFText? labelStyle,
  14. FFColor? legacyErrorBorderColor,
  15. FFText? labelText,
  16. FFText? hintText,
  17. FFColor? legacyFocusBorderColor,
  18. FFText? errorTextStyle,
  19. bool? legacyAlignLabelWithHint,
  20. FFText? counterStyle,
  21. FFColorValue? borderColorValue,
  22. FFBooleanValue? filledValue,
  23. FFColorValue? fillColorValue,
  24. FFDoubleValue? borderWidthValue,
  25. FFBooleanValue? denseValue,
  26. FFColorValue? errorBorderColorValue,
  27. FFColorValue? focusBorderColorValue,
  28. FFBooleanValue? alignLabelWithHintValue,
  29. FFColor? legacyHoverColor,
  30. FFColorValue? hoverColorValue,
})

Implementation

factory FFInputDecoration({
  FFInputDecoration_InputBorderType? inputBorderType,
  @$core.Deprecated('This field is deprecated.') $fixnum.Int64? legacyColor,
  $core.double? legacyBorderWidth,
  FFBorderRadius? borderRadius,
  @$core.Deprecated('This field is deprecated.') $core.String? legacyHintText,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyLabelText,
  FFColor? legacyBorderColor,
  $core.bool? legacyDense,
  FFPadding? contentPadding,
  FFColor? legacyFillColor,
  $core.bool? legacyFilled,
  FFText? hintStyle,
  FFText? labelStyle,
  FFColor? legacyErrorBorderColor,
  FFText? labelText,
  FFText? hintText,
  FFColor? legacyFocusBorderColor,
  FFText? errorTextStyle,
  $core.bool? legacyAlignLabelWithHint,
  FFText? counterStyle,
  FFColorValue? borderColorValue,
  FFBooleanValue? filledValue,
  FFColorValue? fillColorValue,
  FFDoubleValue? borderWidthValue,
  FFBooleanValue? denseValue,
  FFColorValue? errorBorderColorValue,
  FFColorValue? focusBorderColorValue,
  FFBooleanValue? alignLabelWithHintValue,
  FFColor? legacyHoverColor,
  FFColorValue? hoverColorValue,
}) {
  final result = create();
  if (inputBorderType != null) result.inputBorderType = inputBorderType;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (legacyHintText != null) result.legacyHintText = legacyHintText;
  if (legacyLabelText != null) result.legacyLabelText = legacyLabelText;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (legacyDense != null) result.legacyDense = legacyDense;
  if (contentPadding != null) result.contentPadding = contentPadding;
  if (legacyFillColor != null) result.legacyFillColor = legacyFillColor;
  if (legacyFilled != null) result.legacyFilled = legacyFilled;
  if (hintStyle != null) result.hintStyle = hintStyle;
  if (labelStyle != null) result.labelStyle = labelStyle;
  if (legacyErrorBorderColor != null)
    result.legacyErrorBorderColor = legacyErrorBorderColor;
  if (labelText != null) result.labelText = labelText;
  if (hintText != null) result.hintText = hintText;
  if (legacyFocusBorderColor != null)
    result.legacyFocusBorderColor = legacyFocusBorderColor;
  if (errorTextStyle != null) result.errorTextStyle = errorTextStyle;
  if (legacyAlignLabelWithHint != null)
    result.legacyAlignLabelWithHint = legacyAlignLabelWithHint;
  if (counterStyle != null) result.counterStyle = counterStyle;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (filledValue != null) result.filledValue = filledValue;
  if (fillColorValue != null) result.fillColorValue = fillColorValue;
  if (borderWidthValue != null) result.borderWidthValue = borderWidthValue;
  if (denseValue != null) result.denseValue = denseValue;
  if (errorBorderColorValue != null)
    result.errorBorderColorValue = errorBorderColorValue;
  if (focusBorderColorValue != null)
    result.focusBorderColorValue = focusBorderColorValue;
  if (alignLabelWithHintValue != null)
    result.alignLabelWithHintValue = alignLabelWithHintValue;
  if (legacyHoverColor != null) result.legacyHoverColor = legacyHoverColor;
  if (hoverColorValue != null) result.hoverColorValue = hoverColorValue;
  return result;
}