FFTextField constructor

FFTextField({
  1. FFText? textStyle,
  2. FFInputDecoration? inputDecoration,
  3. int? legacyMaxLines,
  4. bool? passwordField,
  5. @Deprecated('This field is deprecated.') String? legacyInitialText,
  6. FFTextInputType? keyboardType,
  7. bool? showClearButton,
  8. FFIcon? legacyLeadingIcon,
  9. FFIcon? legacyTrailingIcon,
  10. bool? localStateValue,
  11. @Deprecated('This field is deprecated.') FFTextInputValidation? validation,
  12. bool? setStateOnChanged,
  13. double? legacyDebounceTime,
  14. FFText? initialText,
  15. bool? legacyReadOnly,
  16. bool? legacyAutofocus,
  17. FFDim? width,
  18. bool? autocomplete,
  19. @Deprecated('This field is deprecated.') Iterable<FFText>? legacyOptions,
  20. FFText? optionTextStyle,
  21. FFText? optionSubstringStyle,
  22. FFColor? legacyOptionBackgroundColor,
  23. FFColor? legacyOptionHighlightColor,
  24. double? legacyOptionElevation,
  25. FFDim? optionsOverlayHeight,
  26. int? legacyMinLines,
  27. FFTextFieldMask? mask,
  28. FFTextFieldFilter? filter,
  29. FFTextField_AutoFillHints? autoFillHint,
  30. FFTextField_Capitalization? capitalization,
  31. FFColor? legacyCursorColor,
  32. FFTextField_SubmitType? submitType,
  33. int? legacyMaxLength,
  34. FFTextField_MaxLengthEnforcement? maxLengthEnforcement,
  35. bool? hideMaxLengthCounter,
  36. bool? setStateOnFocusChanged,
  37. FFIntegerValue? maxLinesValue,
  38. FFIntegerValue? minLinesValue,
  39. FFDoubleValue? debounceTimeValue,
  40. FFBooleanValue? readOnlyValue,
  41. FFBooleanValue? autofocusValue,
  42. FFDoubleValue? optionElevationValue,
  43. FFColorValue? cursorColorValue,
  44. FFIntegerValue? maxLengthValue,
  45. FFIconValue? leadingIconValue,
  46. FFIconValue? trailingIconValue,
  47. bool? blockShortcutIntents,
  48. FFColorValue? optionBackgroundColorValue,
  49. FFColorValue? optionHighlightColorValue,
  50. FFTextOptionsValue? options,
  51. FFBooleanValue? enableInteractiveSelection,
  52. FFBooleanValue? enabledValue,
  53. FFBooleanValue? passwordIconAllowKeyboardTraversal,
})

Implementation

factory FFTextField({
  FFText? textStyle,
  FFInputDecoration? inputDecoration,
  $core.int? legacyMaxLines,
  $core.bool? passwordField,
  @$core.Deprecated('This field is deprecated.')
  $core.String? legacyInitialText,
  FFTextInputType? keyboardType,
  $core.bool? showClearButton,
  FFIcon? legacyLeadingIcon,
  FFIcon? legacyTrailingIcon,
  $core.bool? localStateValue,
  @$core.Deprecated('This field is deprecated.')
  FFTextInputValidation? validation,
  $core.bool? setStateOnChanged,
  $core.double? legacyDebounceTime,
  FFText? initialText,
  $core.bool? legacyReadOnly,
  $core.bool? legacyAutofocus,
  FFDim? width,
  $core.bool? autocomplete,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFText>? legacyOptions,
  FFText? optionTextStyle,
  FFText? optionSubstringStyle,
  FFColor? legacyOptionBackgroundColor,
  FFColor? legacyOptionHighlightColor,
  $core.double? legacyOptionElevation,
  FFDim? optionsOverlayHeight,
  $core.int? legacyMinLines,
  FFTextFieldMask? mask,
  FFTextFieldFilter? filter,
  FFTextField_AutoFillHints? autoFillHint,
  FFTextField_Capitalization? capitalization,
  FFColor? legacyCursorColor,
  FFTextField_SubmitType? submitType,
  $core.int? legacyMaxLength,
  FFTextField_MaxLengthEnforcement? maxLengthEnforcement,
  $core.bool? hideMaxLengthCounter,
  $core.bool? setStateOnFocusChanged,
  FFIntegerValue? maxLinesValue,
  FFIntegerValue? minLinesValue,
  FFDoubleValue? debounceTimeValue,
  FFBooleanValue? readOnlyValue,
  FFBooleanValue? autofocusValue,
  FFDoubleValue? optionElevationValue,
  FFColorValue? cursorColorValue,
  FFIntegerValue? maxLengthValue,
  FFIconValue? leadingIconValue,
  FFIconValue? trailingIconValue,
  $core.bool? blockShortcutIntents,
  FFColorValue? optionBackgroundColorValue,
  FFColorValue? optionHighlightColorValue,
  FFTextOptionsValue? options,
  FFBooleanValue? enableInteractiveSelection,
  FFBooleanValue? enabledValue,
  FFBooleanValue? passwordIconAllowKeyboardTraversal,
}) {
  final result = create();
  if (textStyle != null) result.textStyle = textStyle;
  if (inputDecoration != null) result.inputDecoration = inputDecoration;
  if (legacyMaxLines != null) result.legacyMaxLines = legacyMaxLines;
  if (passwordField != null) result.passwordField = passwordField;
  if (legacyInitialText != null) result.legacyInitialText = legacyInitialText;
  if (keyboardType != null) result.keyboardType = keyboardType;
  if (showClearButton != null) result.showClearButton = showClearButton;
  if (legacyLeadingIcon != null) result.legacyLeadingIcon = legacyLeadingIcon;
  if (legacyTrailingIcon != null)
    result.legacyTrailingIcon = legacyTrailingIcon;
  if (localStateValue != null) result.localStateValue = localStateValue;
  if (validation != null) result.validation = validation;
  if (setStateOnChanged != null) result.setStateOnChanged = setStateOnChanged;
  if (legacyDebounceTime != null)
    result.legacyDebounceTime = legacyDebounceTime;
  if (initialText != null) result.initialText = initialText;
  if (legacyReadOnly != null) result.legacyReadOnly = legacyReadOnly;
  if (legacyAutofocus != null) result.legacyAutofocus = legacyAutofocus;
  if (width != null) result.width = width;
  if (autocomplete != null) result.autocomplete = autocomplete;
  if (legacyOptions != null) result.legacyOptions.addAll(legacyOptions);
  if (optionTextStyle != null) result.optionTextStyle = optionTextStyle;
  if (optionSubstringStyle != null)
    result.optionSubstringStyle = optionSubstringStyle;
  if (legacyOptionBackgroundColor != null)
    result.legacyOptionBackgroundColor = legacyOptionBackgroundColor;
  if (legacyOptionHighlightColor != null)
    result.legacyOptionHighlightColor = legacyOptionHighlightColor;
  if (legacyOptionElevation != null)
    result.legacyOptionElevation = legacyOptionElevation;
  if (optionsOverlayHeight != null)
    result.optionsOverlayHeight = optionsOverlayHeight;
  if (legacyMinLines != null) result.legacyMinLines = legacyMinLines;
  if (mask != null) result.mask = mask;
  if (filter != null) result.filter = filter;
  if (autoFillHint != null) result.autoFillHint = autoFillHint;
  if (capitalization != null) result.capitalization = capitalization;
  if (legacyCursorColor != null) result.legacyCursorColor = legacyCursorColor;
  if (submitType != null) result.submitType = submitType;
  if (legacyMaxLength != null) result.legacyMaxLength = legacyMaxLength;
  if (maxLengthEnforcement != null)
    result.maxLengthEnforcement = maxLengthEnforcement;
  if (hideMaxLengthCounter != null)
    result.hideMaxLengthCounter = hideMaxLengthCounter;
  if (setStateOnFocusChanged != null)
    result.setStateOnFocusChanged = setStateOnFocusChanged;
  if (maxLinesValue != null) result.maxLinesValue = maxLinesValue;
  if (minLinesValue != null) result.minLinesValue = minLinesValue;
  if (debounceTimeValue != null) result.debounceTimeValue = debounceTimeValue;
  if (readOnlyValue != null) result.readOnlyValue = readOnlyValue;
  if (autofocusValue != null) result.autofocusValue = autofocusValue;
  if (optionElevationValue != null)
    result.optionElevationValue = optionElevationValue;
  if (cursorColorValue != null) result.cursorColorValue = cursorColorValue;
  if (maxLengthValue != null) result.maxLengthValue = maxLengthValue;
  if (leadingIconValue != null) result.leadingIconValue = leadingIconValue;
  if (trailingIconValue != null) result.trailingIconValue = trailingIconValue;
  if (blockShortcutIntents != null)
    result.blockShortcutIntents = blockShortcutIntents;
  if (optionBackgroundColorValue != null)
    result.optionBackgroundColorValue = optionBackgroundColorValue;
  if (optionHighlightColorValue != null)
    result.optionHighlightColorValue = optionHighlightColorValue;
  if (options != null) result.options = options;
  if (enableInteractiveSelection != null)
    result.enableInteractiveSelection = enableInteractiveSelection;
  if (enabledValue != null) result.enabledValue = enabledValue;
  if (passwordIconAllowKeyboardTraversal != null)
    result.passwordIconAllowKeyboardTraversal =
        passwordIconAllowKeyboardTraversal;
  return result;
}