InputField constructor

const InputField({
  1. Key? key,
  2. Widget? prefix,
  3. Widget? suffix,
  4. bool? readOnly = false,
  5. Decoration? outerDecoration,
  6. InputDecoration? inputDecoration,
  7. EdgeInsets? contentPadding,
  8. int? maxLines,
  9. TextInputAction? textInputAction,
  10. TextInputType? keyboardType,
  11. String? validator(
    1. String?
    )?,
  12. bool? autofocus = false,
  13. void onChanged(
    1. String?
    )?,
  14. void onFieldSubmitted(
    1. String?
    )?,
  15. FocusNode? focusNode,
  16. double? cursorWidth = 1.0,
  17. TextStyle? inputTextStyle,
  18. TextEditingController? controller,
  19. List<TextInputFormatter>? formatters,
  20. Color? cursorColor,
})

Implementation

const InputField({
  super.key,
  this.prefix,
  this.suffix,
  this.readOnly = false,
  this.outerDecoration,
  this.inputDecoration,
  this.contentPadding,
  this.maxLines,
  this.textInputAction,
  this.keyboardType,
  this.validator,
  this.autofocus = false,
  this.onChanged,
  this.onFieldSubmitted,
  this.focusNode,
  this.cursorWidth = 1.0,
  this.inputTextStyle,
  this.controller,
  this.formatters,
  this.cursorColor,
}) /* : assert(
        inputDecoration != null &&
            (suffix != null || prefix != null || contentPadding != null),
        'Если есть inputDecoration, то suffix, prefix, contentPadding, должны быть равны null',
      ),
      super(key: key) */
;