bind method
LiveTextField
bind({
- MutableCell<
String> ? content, - MutableCell<
TextSelection> ? selection, - Object? groupId,
- FocusNode? focusNode,
- UndoHistoryController? undoController,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization? textCapitalization,
- TextStyle? style,
- StrutStyle? strutStyle,
- TextAlign? textAlign,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool? readOnly,
- ToolbarOptions? toolbarOptions,
- bool? showCursor,
- bool? autofocus,
- WidgetStatesController? statesController,
- String? obscuringCharacter,
- bool? obscureText,
- bool? autocorrect,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool? enableSuggestions,
- int? maxLines,
- int? minLines,
- bool? expands,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- void onChanged()?,
- void onEditingComplete()?,
- void onSubmitted()?,
- void onAppPrivateCommand()?,
- List<
TextInputFormatter> ? inputFormatters, - ValueCell<
bool?> ? enabled, - bool? ignorePointers,
- double? cursorWidth,
- double? cursorHeight,
- Radius? cursorRadius,
- bool? cursorOpacityAnimates,
- Color? cursorColor,
- Color? cursorErrorColor,
- BoxHeightStyle? selectionHeightStyle,
- BoxWidthStyle? selectionWidthStyle,
- Brightness? keyboardAppearance,
- EdgeInsets? scrollPadding,
- DragStartBehavior? dragStartBehavior,
- bool? enableInteractiveSelection,
- TextSelectionControls? selectionControls,
- void onTap()?,
- bool? onTapAlwaysCalled,
- void onTapOutside()?,
- MouseCursor? mouseCursor,
- Widget? buildCounter(
- BuildContext, {
- required int currentLength,
- required bool isFocused,
- required int? maxLength,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - ContentInsertionConfiguration? contentInsertionConfiguration,
- Clip? clipBehavior,
- String? restorationId,
- bool? scribbleEnabled,
- bool? enableIMEPersonalizedLearning,
- bool? canRequestFocus,
- SpellCheckConfiguration? spellCheckConfiguration,
- TextMagnifierConfiguration? magnifierConfiguration,
Implementation
LiveTextField bind({
MutableCell<String>? content,
MutableCell<TextSelection>? selection,
Object? groupId,
FocusNode? focusNode,
UndoHistoryController? undoController,
InputDecoration? decoration,
TextInputType? keyboardType,
TextInputAction? textInputAction,
TextCapitalization? textCapitalization,
TextStyle? style,
StrutStyle? strutStyle,
TextAlign? textAlign,
TextAlignVertical? textAlignVertical,
TextDirection? textDirection,
bool? readOnly,
ToolbarOptions? toolbarOptions,
bool? showCursor,
bool? autofocus,
WidgetStatesController? statesController,
String? obscuringCharacter,
bool? obscureText,
bool? autocorrect,
SmartDashesType? smartDashesType,
SmartQuotesType? smartQuotesType,
bool? enableSuggestions,
int? maxLines,
int? minLines,
bool? expands,
int? maxLength,
MaxLengthEnforcement? maxLengthEnforcement,
void Function(String)? onChanged,
void Function()? onEditingComplete,
void Function(String)? onSubmitted,
void Function(String, Map<String, dynamic>)? onAppPrivateCommand,
List<TextInputFormatter>? inputFormatters,
ValueCell<bool?>? enabled,
bool? ignorePointers,
double? cursorWidth,
double? cursorHeight,
Radius? cursorRadius,
bool? cursorOpacityAnimates,
Color? cursorColor,
Color? cursorErrorColor,
BoxHeightStyle? selectionHeightStyle,
BoxWidthStyle? selectionWidthStyle,
Brightness? keyboardAppearance,
EdgeInsets? scrollPadding,
DragStartBehavior? dragStartBehavior,
bool? enableInteractiveSelection,
TextSelectionControls? selectionControls,
void Function()? onTap,
bool? onTapAlwaysCalled,
void Function(PointerDownEvent)? onTapOutside,
MouseCursor? mouseCursor,
Widget? Function(BuildContext,
{required int currentLength,
required bool isFocused,
required int? maxLength})?
buildCounter,
ScrollController? scrollController,
ScrollPhysics? scrollPhysics,
Iterable<String>? autofillHints,
ContentInsertionConfiguration? contentInsertionConfiguration,
Clip? clipBehavior,
String? restorationId,
bool? scribbleEnabled,
bool? enableIMEPersonalizedLearning,
bool? canRequestFocus,
SpellCheckConfiguration? spellCheckConfiguration,
TextMagnifierConfiguration? magnifierConfiguration,
}) =>
LiveTextField(
content: content ?? this.content,
selection: selection ?? this.selection,
groupId: groupId ?? this.groupId,
focusNode: focusNode ?? this.focusNode,
undoController: undoController ?? this.undoController,
decoration: decoration ?? this.decoration,
keyboardType: keyboardType ?? this.keyboardType,
textInputAction: textInputAction ?? this.textInputAction,
textCapitalization: textCapitalization ?? this.textCapitalization,
style: style ?? this.style,
strutStyle: strutStyle ?? this.strutStyle,
textAlign: textAlign ?? this.textAlign,
textAlignVertical: textAlignVertical ?? this.textAlignVertical,
textDirection: textDirection ?? this.textDirection,
readOnly: readOnly ?? this.readOnly,
toolbarOptions: toolbarOptions ?? this.toolbarOptions,
showCursor: showCursor ?? this.showCursor,
autofocus: autofocus ?? this.autofocus,
statesController: statesController ?? this.statesController,
obscuringCharacter: obscuringCharacter ?? this.obscuringCharacter,
obscureText: obscureText ?? this.obscureText,
autocorrect: autocorrect ?? this.autocorrect,
smartDashesType: smartDashesType ?? this.smartDashesType,
smartQuotesType: smartQuotesType ?? this.smartQuotesType,
enableSuggestions: enableSuggestions ?? this.enableSuggestions,
maxLines: maxLines ?? this.maxLines,
minLines: minLines ?? this.minLines,
expands: expands ?? this.expands,
maxLength: maxLength ?? this.maxLength,
maxLengthEnforcement: maxLengthEnforcement ?? this.maxLengthEnforcement,
onChanged: onChanged ?? this.onChanged,
onEditingComplete: onEditingComplete ?? this.onEditingComplete,
onSubmitted: onSubmitted ?? this.onSubmitted,
onAppPrivateCommand: onAppPrivateCommand ?? this.onAppPrivateCommand,
inputFormatters: inputFormatters ?? this.inputFormatters,
enabled: enabled ?? this.enabled,
ignorePointers: ignorePointers ?? this.ignorePointers,
cursorWidth: cursorWidth ?? this.cursorWidth,
cursorHeight: cursorHeight ?? this.cursorHeight,
cursorRadius: cursorRadius ?? this.cursorRadius,
cursorOpacityAnimates:
cursorOpacityAnimates ?? this.cursorOpacityAnimates,
cursorColor: cursorColor ?? this.cursorColor,
cursorErrorColor: cursorErrorColor ?? this.cursorErrorColor,
selectionHeightStyle: selectionHeightStyle ?? this.selectionHeightStyle,
selectionWidthStyle: selectionWidthStyle ?? this.selectionWidthStyle,
keyboardAppearance: keyboardAppearance ?? this.keyboardAppearance,
scrollPadding: scrollPadding ?? this.scrollPadding,
dragStartBehavior: dragStartBehavior ?? this.dragStartBehavior,
enableInteractiveSelection:
enableInteractiveSelection ?? this.enableInteractiveSelection,
selectionControls: selectionControls ?? this.selectionControls,
onTap: onTap ?? this.onTap,
onTapAlwaysCalled: onTapAlwaysCalled ?? this.onTapAlwaysCalled,
onTapOutside: onTapOutside ?? this.onTapOutside,
mouseCursor: mouseCursor ?? this.mouseCursor,
buildCounter: buildCounter ?? this.buildCounter,
scrollController: scrollController ?? this.scrollController,
scrollPhysics: scrollPhysics ?? this.scrollPhysics,
autofillHints: autofillHints ?? this.autofillHints,
contentInsertionConfiguration:
contentInsertionConfiguration ?? this.contentInsertionConfiguration,
clipBehavior: clipBehavior ?? this.clipBehavior,
restorationId: restorationId ?? this.restorationId,
scribbleEnabled: scribbleEnabled ?? this.scribbleEnabled,
enableIMEPersonalizedLearning:
enableIMEPersonalizedLearning ?? this.enableIMEPersonalizedLearning,
canRequestFocus: canRequestFocus ?? this.canRequestFocus,
spellCheckConfiguration:
spellCheckConfiguration ?? this.spellCheckConfiguration,
magnifierConfiguration:
magnifierConfiguration ?? this.magnifierConfiguration,
);