FxFieldOptions constructor

const FxFieldOptions({
  1. String? label,
  2. String? hint,
  3. String? helperText,
  4. String? errorText,
  5. Widget? prefix,
  6. Widget? prefixIcon,
  7. Widget? suffix,
  8. Widget? suffixIcon,
  9. TextCapitalization textCapitalization = TextCapitalization.none,
  10. int maxLines = 1,
  11. int? maxLength,
  12. FocusNode? focusNode,
  13. bool autofocus = false,
  14. bool autocorrect = false,
  15. bool enableSuggestions = false,
  16. bool readOnly = false,
  17. bool showCursor = false,
  18. bool showErrorText = false,
  19. TextInputType keyboardType = TextInputType.text,
  20. TextInputAction textInputAction = TextInputAction.next,
  21. bool obscureText = false,
  22. bool enabled = true,
  23. FxLabelBehavior labelBehavior = FxLabelBehavior.auto,
})

Implementation

const FxFieldOptions({
  this.label,
  this.hint,
  this.helperText,
  this.errorText,
  this.prefix,
  this.prefixIcon,
  this.suffix,
  this.suffixIcon,
  this.textCapitalization = TextCapitalization.none,
  this.maxLines = 1,
  this.maxLength,
  this.focusNode,
  this.autofocus = false,
  this.autocorrect = false,
  this.enableSuggestions = false,
  this.readOnly = false,
  this.showCursor = false,
  this.showErrorText = false,
  this.keyboardType = TextInputType.text,
  this.textInputAction = TextInputAction.next,
  this.obscureText = false,
  this.enabled = true,
  this.labelBehavior = FxLabelBehavior.auto,
});