copyWith method

TextField copyWith({
  1. ValueGetter<Key?>? key,
  2. ValueGetter<TextEditingController?>? controller,
  3. ValueGetter<String?>? initialValue,
  4. ValueGetter<FocusNode?>? focusNode,
  5. ValueGetter<UndoHistoryController?>? undoController,
  6. ValueGetter<BoxDecoration?>? decoration,
  7. ValueGetter<EdgeInsetsGeometry?>? padding,
  8. ValueGetter<Widget?>? placeholder,
  9. ValueGetter<Widget?>? leading,
  10. ValueGetter<Widget?>? trailing,
  11. ValueGetter<CrossAxisAlignment>? crossAxisAlignment,
  12. ValueGetter<String?>? clearButtonSemanticLabel,
  13. ValueGetter<TextInputType?>? keyboardType,
  14. ValueGetter<TextInputAction?>? textInputAction,
  15. ValueGetter<TextCapitalization>? textCapitalization,
  16. ValueGetter<TextStyle?>? style,
  17. ValueGetter<StrutStyle?>? strutStyle,
  18. ValueGetter<TextAlign>? textAlign,
  19. ValueGetter<TextAlignVertical?>? textAlignVertical,
  20. ValueGetter<TextDirection?>? textDirection,
  21. ValueGetter<bool>? readOnly,
  22. ValueGetter<bool?>? showCursor,
  23. ValueGetter<bool>? autofocus,
  24. ValueGetter<String>? obscuringCharacter,
  25. ValueGetter<bool>? obscureText,
  26. ValueGetter<bool>? autocorrect,
  27. ValueGetter<SmartDashesType?>? smartDashesType,
  28. ValueGetter<SmartQuotesType?>? smartQuotesType,
  29. ValueGetter<bool>? enableSuggestions,
  30. ValueGetter<int?>? maxLines,
  31. ValueGetter<int?>? minLines,
  32. ValueGetter<bool>? expands,
  33. ValueGetter<int?>? maxLength,
  34. ValueGetter<MaxLengthEnforcement?>? maxLengthEnforcement,
  35. ValueGetter<ValueChanged<String>?>? onChanged,
  36. ValueGetter<VoidCallback?>? onEditingComplete,
  37. ValueGetter<ValueChanged<String>?>? onSubmitted,
  38. ValueGetter<TapRegionCallback?>? onTapOutside,
  39. ValueGetter<TapRegionCallback?>? onTapUpOutside,
  40. ValueGetter<List<TextInputFormatter>?>? inputFormatters,
  41. ValueGetter<bool>? enabled,
  42. ValueGetter<double>? cursorWidth,
  43. ValueGetter<double?>? cursorHeight,
  44. ValueGetter<Radius>? cursorRadius,
  45. ValueGetter<bool>? cursorOpacityAnimates,
  46. ValueGetter<Color?>? cursorColor,
  47. ValueGetter<BoxHeightStyle>? selectionHeightStyle,
  48. ValueGetter<BoxWidthStyle>? selectionWidthStyle,
  49. ValueGetter<Brightness?>? keyboardAppearance,
  50. ValueGetter<EdgeInsets>? scrollPadding,
  51. ValueGetter<bool>? enableInteractiveSelection,
  52. ValueGetter<TextSelectionControls?>? selectionControls,
  53. ValueGetter<GestureTapCallback?>? onTap,
  54. ValueGetter<ScrollController?>? scrollController,
  55. ValueGetter<ScrollPhysics?>? scrollPhysics,
  56. ValueGetter<Iterable<String>?>? autofillHints,
  57. ValueGetter<Clip>? clipBehavior,
  58. ValueGetter<String?>? restorationId,
  59. ValueGetter<bool>? stylusHandwritingEnabled,
  60. ValueGetter<bool>? enableIMEPersonalizedLearning,
  61. ValueGetter<ContentInsertionConfiguration?>? contentInsertionConfiguration,
  62. ValueGetter<EditableTextContextMenuBuilder?>? contextMenuBuilder,
  63. ValueGetter<String?>? hintText,
  64. ValueGetter<Border?>? border,
  65. ValueGetter<BorderRadiusGeometry?>? borderRadius,
  66. ValueGetter<bool?>? filled,
  67. ValueGetter<WidgetStatesController?>? statesController,
  68. ValueGetter<TextMagnifierConfiguration?>? magnifierConfiguration,
  69. ValueGetter<SpellCheckConfiguration?>? spellCheckConfiguration,
  70. ValueGetter<List<InputFeature>>? features,
  71. ValueGetter<List<TextInputFormatter>?>? submitFormatters,
  72. ValueGetter<bool>? skipInputFeatureFocusTraversal,
})

Implementation

TextField copyWith({
  ValueGetter<Key?>? key,
  ValueGetter<TextEditingController?>? controller,
  ValueGetter<String?>? initialValue,
  ValueGetter<FocusNode?>? focusNode,
  ValueGetter<UndoHistoryController?>? undoController,
  ValueGetter<BoxDecoration?>? decoration,
  ValueGetter<EdgeInsetsGeometry?>? padding,
  ValueGetter<Widget?>? placeholder,
  ValueGetter<Widget?>? leading,
  ValueGetter<Widget?>? trailing,
  ValueGetter<CrossAxisAlignment>? crossAxisAlignment,
  ValueGetter<String?>? clearButtonSemanticLabel,
  ValueGetter<TextInputType?>? keyboardType,
  ValueGetter<TextInputAction?>? textInputAction,
  ValueGetter<TextCapitalization>? textCapitalization,
  ValueGetter<TextStyle?>? style,
  ValueGetter<StrutStyle?>? strutStyle,
  ValueGetter<TextAlign>? textAlign,
  ValueGetter<TextAlignVertical?>? textAlignVertical,
  ValueGetter<TextDirection?>? textDirection,
  ValueGetter<bool>? readOnly,
  ValueGetter<bool?>? showCursor,
  ValueGetter<bool>? autofocus,
  ValueGetter<String>? obscuringCharacter,
  ValueGetter<bool>? obscureText,
  ValueGetter<bool>? autocorrect,
  ValueGetter<SmartDashesType?>? smartDashesType,
  ValueGetter<SmartQuotesType?>? smartQuotesType,
  ValueGetter<bool>? enableSuggestions,
  ValueGetter<int?>? maxLines,
  ValueGetter<int?>? minLines,
  ValueGetter<bool>? expands,
  ValueGetter<int?>? maxLength,
  ValueGetter<MaxLengthEnforcement?>? maxLengthEnforcement,
  ValueGetter<ValueChanged<String>?>? onChanged,
  ValueGetter<VoidCallback?>? onEditingComplete,
  ValueGetter<ValueChanged<String>?>? onSubmitted,
  ValueGetter<TapRegionCallback?>? onTapOutside,
  ValueGetter<TapRegionCallback?>? onTapUpOutside,
  ValueGetter<List<TextInputFormatter>?>? inputFormatters,
  ValueGetter<bool>? enabled,
  ValueGetter<double>? cursorWidth,
  ValueGetter<double?>? cursorHeight,
  ValueGetter<Radius>? cursorRadius,
  ValueGetter<bool>? cursorOpacityAnimates,
  ValueGetter<Color?>? cursorColor,
  ValueGetter<ui.BoxHeightStyle>? selectionHeightStyle,
  ValueGetter<ui.BoxWidthStyle>? selectionWidthStyle,
  ValueGetter<Brightness?>? keyboardAppearance,
  ValueGetter<EdgeInsets>? scrollPadding,
  ValueGetter<bool>? enableInteractiveSelection,
  ValueGetter<TextSelectionControls?>? selectionControls,
  ValueGetter<GestureTapCallback?>? onTap,
  ValueGetter<ScrollController?>? scrollController,
  ValueGetter<ScrollPhysics?>? scrollPhysics,
  ValueGetter<Iterable<String>?>? autofillHints,
  ValueGetter<Clip>? clipBehavior,
  ValueGetter<String?>? restorationId,
  ValueGetter<bool>? stylusHandwritingEnabled,
  ValueGetter<bool>? enableIMEPersonalizedLearning,
  ValueGetter<ContentInsertionConfiguration?>? contentInsertionConfiguration,
  ValueGetter<EditableTextContextMenuBuilder?>? contextMenuBuilder,
  ValueGetter<String?>? hintText,
  ValueGetter<Border?>? border,
  ValueGetter<BorderRadiusGeometry?>? borderRadius,
  ValueGetter<bool?>? filled,
  ValueGetter<WidgetStatesController?>? statesController,
  ValueGetter<TextMagnifierConfiguration?>? magnifierConfiguration,
  ValueGetter<SpellCheckConfiguration?>? spellCheckConfiguration,
  ValueGetter<List<InputFeature>>? features,
  ValueGetter<List<TextInputFormatter>?>? submitFormatters,
  ValueGetter<bool>? skipInputFeatureFocusTraversal,
}) {
  return TextField(
    key: key == null ? this.key : key(),
    controller: controller == null ? this.controller : controller(),
    initialValue: initialValue == null ? this.initialValue : initialValue(),
    focusNode: focusNode == null ? this.focusNode : focusNode(),
    undoController:
        undoController == null ? this.undoController : undoController(),
    decoration: decoration == null ? this.decoration : decoration(),
    padding: padding == null ? this.padding : padding(),
    placeholder: placeholder == null ? this.placeholder : placeholder(),
    leading: leading == null ? this.leading : leading(),
    trailing: trailing == null ? this.trailing : trailing(),
    crossAxisAlignment: crossAxisAlignment == null
        ? this.crossAxisAlignment
        : crossAxisAlignment(),
    clearButtonSemanticLabel: clearButtonSemanticLabel == null
        ? this.clearButtonSemanticLabel
        : clearButtonSemanticLabel(),
    keyboardType: keyboardType == null ? this.keyboardType : keyboardType(),
    textInputAction:
        textInputAction == null ? this.textInputAction : textInputAction(),
    textCapitalization: textCapitalization == null
        ? this.textCapitalization
        : textCapitalization(),
    style: style == null ? this.style : style(),
    strutStyle: strutStyle == null ? this.strutStyle : strutStyle(),
    textAlign: textAlign == null ? this.textAlign : textAlign(),
    textAlignVertical: textAlignVertical == null
        ? this.textAlignVertical
        : textAlignVertical(),
    textDirection:
        textDirection == null ? this.textDirection : textDirection(),
    readOnly: readOnly == null ? this.readOnly : readOnly(),
    showCursor: showCursor == null ? this.showCursor : showCursor(),
    autofocus: autofocus == null ? this.autofocus : autofocus(),
    obscuringCharacter: obscuringCharacter == null
        ? this.obscuringCharacter
        : obscuringCharacter(),
    obscureText: obscureText == null ? this.obscureText : obscureText(),
    autocorrect: autocorrect == null ? this.autocorrect : autocorrect(),
    smartDashesType:
        smartDashesType == null ? this.smartDashesType : smartDashesType(),
    smartQuotesType:
        smartQuotesType == null ? this.smartQuotesType : smartQuotesType(),
    enableSuggestions: enableSuggestions == null
        ? this.enableSuggestions
        : enableSuggestions(),
    maxLines: maxLines == null ? this.maxLines : maxLines(),
    minLines: minLines == null ? this.minLines : minLines(),
    expands: expands == null ? this.expands : expands(),
    maxLength: maxLength == null ? this.maxLength : maxLength(),
    maxLengthEnforcement: maxLengthEnforcement == null
        ? this.maxLengthEnforcement
        : maxLengthEnforcement(),
    onChanged: onChanged == null ? this.onChanged : onChanged(),
    onEditingComplete: onEditingComplete == null
        ? this.onEditingComplete
        : onEditingComplete(),
    onSubmitted: onSubmitted == null ? this.onSubmitted : onSubmitted(),
    onTapOutside: onTapOutside == null ? this.onTapOutside : onTapOutside(),
    onTapUpOutside:
        onTapUpOutside == null ? this.onTapUpOutside : onTapUpOutside(),
    inputFormatters:
        inputFormatters == null ? this.inputFormatters : inputFormatters(),
    enabled: enabled == null ? this.enabled : enabled(),
    cursorWidth: cursorWidth == null ? this.cursorWidth : cursorWidth(),
    cursorHeight: cursorHeight == null ? this.cursorHeight : cursorHeight(),
    cursorRadius: cursorRadius == null ? this.cursorRadius : cursorRadius(),
    cursorOpacityAnimates: cursorOpacityAnimates == null
        ? this.cursorOpacityAnimates
        : cursorOpacityAnimates(),
    cursorColor: cursorColor == null ? this.cursorColor : cursorColor(),
    selectionHeightStyle: selectionHeightStyle == null
        ? this.selectionHeightStyle
        : selectionHeightStyle(),
    selectionWidthStyle: selectionWidthStyle == null
        ? this.selectionWidthStyle
        : selectionWidthStyle(),
    keyboardAppearance: keyboardAppearance == null
        ? this.keyboardAppearance
        : keyboardAppearance(),
    scrollPadding:
        scrollPadding == null ? this.scrollPadding : scrollPadding(),
    enableInteractiveSelection: enableInteractiveSelection == null
        ? this.enableInteractiveSelection
        : enableInteractiveSelection(),
    selectionControls: selectionControls == null
        ? this.selectionControls
        : selectionControls(),
    onTap: onTap == null ? this.onTap : onTap(),
    scrollController:
        scrollController == null ? this.scrollController : scrollController(),
    scrollPhysics:
        scrollPhysics == null ? this.scrollPhysics : scrollPhysics(),
    autofillHints:
        autofillHints == null ? this.autofillHints : autofillHints(),
    clipBehavior: clipBehavior == null ? this.clipBehavior : clipBehavior(),
    restorationId:
        restorationId == null ? this.restorationId : restorationId(),
    stylusHandwritingEnabled: stylusHandwritingEnabled == null
        ? this.stylusHandwritingEnabled
        : stylusHandwritingEnabled(),
    enableIMEPersonalizedLearning: enableIMEPersonalizedLearning == null
        ? this.enableIMEPersonalizedLearning
        : enableIMEPersonalizedLearning(),
    contentInsertionConfiguration: contentInsertionConfiguration == null
        ? this.contentInsertionConfiguration
        : contentInsertionConfiguration(),
    contextMenuBuilder: contextMenuBuilder == null
        ? this.contextMenuBuilder
        : contextMenuBuilder(),
    hintText: hintText == null ? this.hintText : hintText(),
    border: border == null ? this.border : border(),
    borderRadius: borderRadius == null ? this.borderRadius : borderRadius(),
    filled: filled == null ? this.filled : filled(),
    statesController:
        statesController == null ? this.statesController : statesController(),
    magnifierConfiguration: magnifierConfiguration == null
        ? this.magnifierConfiguration
        : magnifierConfiguration(),
    spellCheckConfiguration: spellCheckConfiguration == null
        ? this.spellCheckConfiguration
        : spellCheckConfiguration(),
    features: features == null ? this.features : features(),
    submitFormatters:
        submitFormatters == null ? this.submitFormatters : submitFormatters(),
    skipInputFeatureFocusTraversal: skipInputFeatureFocusTraversal == null
        ? this.skipInputFeatureFocusTraversal
        : skipInputFeatureFocusTraversal(),
  );
}