copyWith method
InputOptions
copyWith({
- TextEditingController? textController,
- TextStyle? textStyle,
- InputDecoration? decoration,
- int? maxLines,
- int? minLines,
- bool? sendOnEnter,
- bool? readOnly,
- bool? autocorrect,
- EdgeInsets? margin,
- BoxDecoration? containerDecoration,
- Color? containerBackgroundColor,
- EdgeInsets? padding,
- EdgeInsets? containerPadding,
- double? inputHeight,
- double? inputContainerHeight,
- BoxConstraints? inputContainerConstraints,
- InputContainerWidth? inputContainerWidth,
- bool? useOuterContainer,
- bool? useOuterMaterial,
- double? materialElevation,
- Color? materialColor,
- ShapeBorder? materialShape,
- EdgeInsets? materialPadding,
- bool? useScaffoldBackground,
- TextDirection? textDirection,
- double? positionedLeft,
- double? positionedRight,
- double? positionedBottom,
- double? positionedTop,
- double? blurStrength,
- bool? clipBehavior,
- Widget sendButtonBuilder(
- VoidCallback onSend
- Color? sendButtonColor,
- Color? sendButtonDisableColor,
- IconData? sendButtonIcon,
- double? sendButtonIconSize,
- EdgeInsets? sendButtonPadding,
- TextInputType? keyboardType,
- TextCapitalization? textCapitalization,
- TextInputAction? textInputAction,
- List<
TextInputFormatter> ? inputFormatters, - bool? enableSuggestions,
- bool? enableIMEPersonalizedLearning,
- Color? cursorColor,
- double? cursorHeight,
- double? cursorWidth,
- Radius? cursorRadius,
- bool? showCursor,
- VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmitted, - ValueChanged<
String> ? onChanged, - GestureTapCallback? onTap,
- bool? unfocusOnTapOutside,
- MouseCursor? mouseCursor,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- TextSelectionControls? selectionControls,
Creates a copy with the given fields replaced with new values.
Implementation
InputOptions copyWith({
TextEditingController? textController,
TextStyle? textStyle,
InputDecoration? decoration,
int? maxLines,
int? minLines,
bool? sendOnEnter,
bool? readOnly,
bool? autocorrect,
EdgeInsets? margin,
BoxDecoration? containerDecoration,
Color? containerBackgroundColor,
EdgeInsets? padding,
EdgeInsets? containerPadding,
double? inputHeight,
double? inputContainerHeight,
BoxConstraints? inputContainerConstraints,
InputContainerWidth? inputContainerWidth,
bool? useOuterContainer,
bool? useOuterMaterial,
double? materialElevation,
Color? materialColor,
ShapeBorder? materialShape,
EdgeInsets? materialPadding,
bool? useScaffoldBackground,
TextDirection? textDirection,
double? positionedLeft,
double? positionedRight,
double? positionedBottom,
double? positionedTop,
double? blurStrength,
bool? clipBehavior,
Widget Function(VoidCallback onSend)? sendButtonBuilder,
Color? sendButtonColor,
Color? sendButtonDisableColor,
IconData? sendButtonIcon,
double? sendButtonIconSize,
EdgeInsets? sendButtonPadding,
TextInputType? keyboardType,
TextCapitalization? textCapitalization,
TextInputAction? textInputAction,
List<TextInputFormatter>? inputFormatters,
bool? enableSuggestions,
bool? enableIMEPersonalizedLearning,
Color? cursorColor,
double? cursorHeight,
double? cursorWidth,
Radius? cursorRadius,
bool? showCursor,
VoidCallback? onEditingComplete,
ValueChanged<String>? onSubmitted,
ValueChanged<String>? onChanged,
GestureTapCallback? onTap,
bool? unfocusOnTapOutside,
MouseCursor? mouseCursor,
EditableTextContextMenuBuilder? contextMenuBuilder,
UndoHistoryController? undoController,
SpellCheckConfiguration? spellCheckConfiguration,
TextMagnifierConfiguration? magnifierConfiguration,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
TextSelectionControls? selectionControls,
}) {
return InputOptions(
textController: textController ?? this.textController,
textStyle: textStyle ?? this.textStyle,
decoration: decoration ?? this.decoration,
maxLines: maxLines ?? this.maxLines,
minLines: minLines ?? this.minLines,
sendOnEnter: sendOnEnter ?? this.sendOnEnter,
readOnly: readOnly ?? this.readOnly,
autocorrect: autocorrect ?? this.autocorrect,
margin: margin ?? this.margin,
containerDecoration: containerDecoration ?? this.containerDecoration,
containerBackgroundColor: containerBackgroundColor ?? this.containerBackgroundColor,
padding: padding ?? this.padding,
containerPadding: containerPadding ?? this.containerPadding,
inputHeight: inputHeight ?? this.inputHeight,
inputContainerHeight: inputContainerHeight ?? this.inputContainerHeight,
inputContainerConstraints: inputContainerConstraints ?? this.inputContainerConstraints,
inputContainerWidth: inputContainerWidth ?? this.inputContainerWidth,
useOuterContainer: useOuterContainer ?? this.useOuterContainer,
useOuterMaterial: useOuterMaterial ?? this.useOuterMaterial,
materialElevation: materialElevation ?? this.materialElevation,
materialColor: materialColor ?? this.materialColor,
materialShape: materialShape ?? this.materialShape,
materialPadding: materialPadding ?? this.materialPadding,
useScaffoldBackground: useScaffoldBackground ?? this.useScaffoldBackground,
inputTextDirection: textDirection ?? inputTextDirection,
positionedLeft: positionedLeft ?? this.positionedLeft,
positionedRight: positionedRight ?? this.positionedRight,
positionedBottom: positionedBottom ?? this.positionedBottom,
positionedTop: positionedTop ?? this.positionedTop,
blurStrength: blurStrength ?? this.blurStrength,
clipBehavior: clipBehavior ?? this.clipBehavior,
sendButtonBuilder: sendButtonBuilder ?? this.sendButtonBuilder,
sendButtonColor: sendButtonColor ?? this.sendButtonColor,
sendButtonDisableColor: sendButtonDisableColor ?? this.sendButtonDisableColor,
sendButtonIcon: sendButtonIcon ?? this.sendButtonIcon,
sendButtonIconSize: sendButtonIconSize ?? this.sendButtonIconSize,
sendButtonPadding: sendButtonPadding ?? this.sendButtonPadding,
keyboardType: keyboardType ?? this.keyboardType,
textCapitalization: textCapitalization ?? this.textCapitalization,
textInputAction: textInputAction ?? this.textInputAction,
textDirection: textDirection ?? this.textDirection,
inputFormatters: inputFormatters ?? this.inputFormatters,
enableSuggestions: enableSuggestions ?? this.enableSuggestions,
enableIMEPersonalizedLearning:
enableIMEPersonalizedLearning ?? this.enableIMEPersonalizedLearning,
cursorColor: cursorColor ?? this.cursorColor,
cursorHeight: cursorHeight ?? this.cursorHeight,
cursorWidth: cursorWidth ?? this.cursorWidth,
cursorRadius: cursorRadius ?? this.cursorRadius,
showCursor: showCursor ?? this.showCursor,
onEditingComplete: onEditingComplete ?? this.onEditingComplete,
onSubmitted: onSubmitted ?? this.onSubmitted,
onChanged: onChanged ?? this.onChanged,
onTap: onTap ?? this.onTap,
unfocusOnTapOutside: unfocusOnTapOutside ?? this.unfocusOnTapOutside,
mouseCursor: mouseCursor ?? this.mouseCursor,
contextMenuBuilder: contextMenuBuilder ?? this.contextMenuBuilder,
undoController: undoController ?? this.undoController,
spellCheckConfiguration: spellCheckConfiguration ?? this.spellCheckConfiguration,
magnifierConfiguration: magnifierConfiguration ?? this.magnifierConfiguration,
smartDashesType: smartDashesType ?? this.smartDashesType,
smartQuotesType: smartQuotesType ?? this.smartQuotesType,
selectionControls: selectionControls ?? this.selectionControls,
);
}