TextFieldWidget constructor

const TextFieldWidget({
  1. Key? key,
  2. void saveValue(
    1. String?
    )?,
  3. Widget? title,
  4. required String? getValue()?,
  5. FieldValidation? validation,
  6. FocusNode? focusNode,
  7. void onSubmit(
    1. String
    )?,
  8. TextInputType? keyboardType,
  9. bool multiLine = false,
  10. int? maxLines = 8,
  11. required bool? isEditable,
  12. bool? isDisabled = false,
  13. HighlightController? highlightController,
  14. TextCapitalization? textCapitalization,
  15. TextInputAction? textInputAction,
  16. TextEditingController? controller,
})

Implementation

const TextFieldWidget({
  Key? key,
  this.saveValue,
  this.title,
  required this.getValue,
  this.validation,
  this.focusNode,
  this.onSubmit,
  this.keyboardType,
  this.multiLine = false,
  this.maxLines = 8,
  required this.isEditable,
  this.isDisabled = false,
  this.highlightController,
  this.textCapitalization,
  this.textInputAction,
  this.controller,
})  : assert(getValue != null),
      assert(!(isEditable ?? true) || saveValue != null),
      assert(textInputAction == null || !multiLine,
          "For multiline the textInputAction must be null!"),
      super(key: key);