clone method

CupertinoTextField clone({
  1. dynamic onChanged(
    1. String
    )?,
  2. TextEditingController? controller,
})

Implementation

CupertinoTextField clone(
    {Function(String)? onChanged, TextEditingController? controller}) {
  return CupertinoTextField(
    key: this.key,
    controller: controller ?? this.controller,
    focusNode: this.focusNode,
    decoration: this.decoration,
    padding: this.padding,
    placeholder: this.placeholder,
    placeholderStyle: this.placeholderStyle,
    prefix: this.prefix,
    prefixMode: this.prefixMode,
    clearButtonMode: this.clearButtonMode,
    keyboardType: this.keyboardType,
    textInputAction: this.textInputAction,
    textCapitalization: this.textCapitalization,
    style: this.style,
    strutStyle: this.strutStyle,
    textAlign: this.textAlign,
    textAlignVertical: this.textAlignVertical,
    readOnly: this.readOnly,
    toolbarOptions: this.toolbarOptions,
    showCursor: this.showCursor,
    autofocus: this.autofocus,
    obscuringCharacter: this.obscuringCharacter,
    obscureText: this.obscureText,
    autocorrect: this.autocorrect,
    smartDashesType: this.smartDashesType,
    smartQuotesType: this.smartQuotesType,
    enableSuggestions: this.enableSuggestions,
    maxLines: this.maxLines,
    minLines: this.minLines,
    expands: this.expands,
    maxLength: this.maxLength,
    maxLengthEnforced: this.maxLengthEnforced,
    maxLengthEnforcement: this.maxLengthEnforcement,
    onChanged: onChanged ?? this.onChanged,
    onEditingComplete: this.onEditingComplete,
    onSubmitted: this.onSubmitted,
    inputFormatters: this.inputFormatters,
    enabled: this.enabled,
    cursorWidth: this.cursorWidth,
    cursorHeight: this.cursorHeight,
    cursorRadius: this.cursorRadius,
    cursorColor: this.cursorColor,
    selectionHeightStyle: this.selectionHeightStyle,
    selectionWidthStyle: this.selectionWidthStyle,
    keyboardAppearance: this.keyboardAppearance,
    scrollPadding: this.scrollPadding,
    dragStartBehavior: this.dragStartBehavior,
    enableInteractiveSelection: this.enableInteractiveSelection,
    selectionControls: this.selectionControls,
    onTap: this.onTap,
    scrollController: this.scrollController,
    scrollPhysics: this.scrollPhysics,
    autofillHints: this.autofillHints,
    restorationId: this.restorationId,
  );
}