buildCustom method
_TextFormField
buildCustom({
- ChildWidgetBuilder? childBuilder,
- required BuildContext context,
- required JsonWidgetData data,
- Key? key,
Custom builder that subclasses must override and implement to return the actual Widget to be placed on the tree.
Implementation
@override
_TextFormField buildCustom({
ChildWidgetBuilder? childBuilder,
required BuildContext context,
required JsonWidgetData data,
Key? key,
}) {
final model = createModel(
childBuilder: childBuilder,
data: data,
);
final decorationDecoded = _decodeInputDecoration(
childBuilder: childBuilder,
context: context,
registry: data.jsonWidgetRegistry,
value: model.decoration,
);
final validatorsDecoded = _decodeValidators(
value: model.validators,
);
return _TextFormField(
autocorrect: model.autocorrect,
autofillHints: model.autofillHints,
autofocus: model.autofocus,
autovalidateMode: model.autovalidateMode,
buildCounter: model.buildCounter,
canRequestFocus: model.canRequestFocus,
clipBehavior: model.clipBehavior,
contentInsertionConfiguration: model.contentInsertionConfiguration,
contextMenuBuilder: model.contextMenuBuilder,
controller: model.controller,
cursorColor: model.cursorColor,
cursorHeight: model.cursorHeight,
cursorOpacityAnimates: model.cursorOpacityAnimates,
cursorRadius: model.cursorRadius,
cursorWidth: model.cursorWidth,
data: data,
decoration: decorationDecoded,
dragStartBehavior: model.dragStartBehavior,
enableIMEPersonalizedLearning: model.enableIMEPersonalizedLearning,
enableInteractiveSelection: model.enableInteractiveSelection,
enableSuggestions: model.enableSuggestions,
enabled: model.enabled,
expands: model.expands,
focusNode: model.focusNode,
initialValue: model.initialValue,
inputFormatters: model.inputFormatters,
keyboardAppearance: model.keyboardAppearance,
keyboardType: model.keyboardType,
magnifierConfiguration: model.magnifierConfiguration,
maxLength: model.maxLength,
maxLengthEnforcement: model.maxLengthEnforcement,
maxLines: model.maxLines,
minLines: model.minLines,
mouseCursor: model.mouseCursor,
obscureText: model.obscureText,
obscuringCharacter: model.obscuringCharacter,
onAppPrivateCommand: model.onAppPrivateCommand,
onChanged: model.onChanged,
onEditingComplete: model.onEditingComplete,
onFieldSubmitted: model.onFieldSubmitted,
onSaved: model.onSaved,
onTap: model.onTap,
onTapOutside: model.onTapOutside,
readOnly: model.readOnly,
restorationId: model.restorationId,
scribbleEnabled: model.scribbleEnabled,
scrollController: model.scrollController,
scrollPadding: model.scrollPadding,
scrollPhysics: model.scrollPhysics,
selectionControls: model.selectionControls,
selectionHeightStyle: model.selectionHeightStyle,
selectionWidthStyle: model.selectionWidthStyle,
showCursor: model.showCursor,
smartDashesType: model.smartDashesType,
smartQuotesType: model.smartQuotesType,
spellCheckConfiguration: model.spellCheckConfiguration,
strutStyle: model.strutStyle,
style: model.style,
textAlign: model.textAlign,
textAlignVertical: model.textAlignVertical,
textCapitalization: model.textCapitalization,
textDirection: model.textDirection,
textInputAction: model.textInputAction,
undoController: model.undoController,
validators: validatorsDecoded,
);
}