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