EditText.text constructor

const EditText.text({
  1. Key? key,
  2. EdgeInsetsGeometry? margin,
  3. EdgeInsetsGeometry? padding,
  4. double? height,
  5. double? width,
  6. int maxLines = 1,
  7. int? maxLength,
  8. TextStyle? style,
  9. String? hint,
  10. TextStyle? hintStyle,
  11. bool enabled = true,
  12. bool obscureText = false,
  13. bool showCountHint = true,
  14. Color? cursorColor,
  15. TextEditingController? controller,
  16. required String? name,
  17. FocusNode? focusNode,
  18. ValueChanged<String>? onChanged,
  19. TextInputType? inputType,
  20. TextDirection? textDirection,
  21. InputDecoration? decoration,
  22. bool autoFocus = false,
  23. TextAlign textAlign = TextAlign.start,
  24. VoidCallback? complete,
  25. TextInputAction? textInputAction,
  26. ValueChanged<String>? onSubmitted,
  27. num? scrollPadding,
})

Implementation

const EditText.text({
  Key? key,
  this.margin,
  this.padding,
  this.height,
  this.width,
  this.maxLines = 1,
  this.maxLength,
  this.style,
  this.hint,
  this.hintStyle,
  this.enabled = true,
  this.obscureText = false,
  this.showCountHint = true,
  this.cursorColor,
  this.controller,
  required this.name,
  this.focusNode,
  this.onChanged,
  TextInputType? inputType,
  this.textDirection,
  this.decoration,
  this.autoFocus = false,
  this.textAlign = TextAlign.start,
  this.complete,
  this.textInputAction,
  this.onSubmitted,
  this.scrollPadding,
})  : keyboardType = inputType ??
          (maxLines == 1 ? TextInputType.text : TextInputType.multiline),
      super(key: key);