buildTextField method

TextField buildTextField({
  1. int maxLines = 1,
  2. TextInputType? keyboardType,
  3. TextInputAction? textInputAction,
  4. List<TextInputFormatter>? inputFormatters,
  5. ValueChanged<String>? onValueChanged,
})

Implementation

TextField buildTextField({
  int maxLines = 1,
  TextInputType? keyboardType,
  TextInputAction? textInputAction,
  List<TextInputFormatter>? inputFormatters,
  ValueChanged<String>? onValueChanged,
}) {
  return wTheme.buildTextField(
    states,
    label: _widget.label,
    placeholder: _widget.placeholder,
    autoFocus: _widget.autoFocus,
    readOnly: _widget.readOnly,
    focusNode: focusNode,
    controller: _textController,
    maxLines: maxLines,
    keyboardType: keyboardType,
    textInputAction: textInputAction,
    inputFormatters: inputFormatters,
    onValueChanged: onValueChanged,
  );
}