toBuild method

dynamic toBuild()

Implementation

toBuild() {
  return TextFormField(
    key: key,
    controller: _controller,
    initialValue: _initialValue,
    focusNode: _focusNode,
    keyboardType: _keyboardType,
    textCapitalization: _textCapitalization,
    textInputAction: _textInputAction,
    // strutStyle,
    textDirection: _textDirection,
    textAlign: _textAlign,
    textAlignVertical: _textAlignVertical,
    autofocus: _autofocus,
    readOnly: _readOnly,
    // toolbarOptions: _toolbarOptions, // 'toolbarOptions' is deprecated and shouldn't be used. Use `contextMenuBuilder` instead
    showCursor: _showCursor,
    obscuringCharacter: _obscuringCharacter,
    obscureText: _obscureText,
    autocorrect: _autocorrect,
    smartDashesType: _smartDashesType,
    smartQuotesType: _smartQuotesType,
    enableSuggestions: _enableSuggestions,
    // autovalidate: deprecated
    // maxLengthEnforced: deprected
    maxLengthEnforcement: _maxLengthEnforcement,
    maxLines: _maxLines,
    minLines: _minLines,
    expands: _expands,
    // maxLength,
    onChanged: _onChanged,
    onTap: _onTap,
    // onEditingComplete
    // onFieldSubmitted
    onSaved: _onSaved,
    validator: _validator,
    // inputFormatters
    // enabled
    // cursorWidth
    // cursorHeight
    // cursorRadius
    // cursorColor
    // keyboardAppearance
    // scrollPadding = const EdgeInsets.all(20.0)
    // enableInteractiveSelection
    // selectionControls
    // Widget Function(BuildContext, {int currentLength, bool isFocused, int maxLength}) buildCounter
    // scrollPhysics
    // autofillHints
    // autovalidateMode
    // scrollController
    decoration: InputDecoration(
      // Widget icon
      labelText: _labelText,
      labelStyle: _labelStyle,
      // helperText
      // helperStyle
      // helperMaxLines
      hintText: _hintText,
      hintStyle: _hintStyle,
      // hintTextDirection
      // hintMaxLines
      // errorText
      // errorStyle
      // errorMaxLines
      // hasFloatingPlaceholder
      // floatingLabelBehavior
      // isCollapsed
      // isDense
      contentPadding: EdgeInsets.fromLTRB(_paddingLeft, _paddingTop, _paddingRight, _paddingBottom),
      prefixIcon: _prefixIcon,
      // prefixIconConstraints
      // prefix
      // prefixText
      // prefixStyle
      suffixIcon: _suffixIcon,
      // suffix
      // suffixText
      // suffixStyle
      // suffixIconConstraints
      // counter
      // counterText
      // counterStyle
      // filled,
      // fillColor
      // focusColor
      // hoverColor
      errorBorder:_errorBorder,
      focusedBorder:_focusedBorder,
      focusedErrorBorder:_focusedErrorBorder,
      disabledBorder:_disabledBorder,
      enabledBorder:_enabledBorder,
      border:_border,
      // enabled
      // semanticCounterText
      // alignLabelWithHint
    ),
    style: _textStyle,
    // TextStyle(
    //   color: _color,
    //   backgroundColor: _backgroundColor,
    //   fontWeight: _fontWeight,
    //   fontStyle: _fontStyle,
    //   fontSize: _fontSize,
    //   letterSpacing: _letterSpacing,
    //   wordSpacing: _wordSpacing,
    //   height: _height,
    //   // leadingDistribution: _leadingDistribution,
    //   // locale: _locale,
    //   foreground: _foreground,
    //   background: _background,
    //   fontFeatures: _fontFeatures,
    //   textBaseline: _textBaseline,
    //   decoration: _textDecoration,
    //   decorationColor: _textDecorationColor,
    //   decorationThickness: _textDecorationThickness,
    //   shadows: _shadows,
    //   fontFamily: _fontFamily,
    //   fontFamilyFallback: _fontFamilyFallback,
    // ),
  );
}