Input constructor

const Input({
  1. Key? id,
  2. required String message,
  3. required InputState state,
  4. String? defaultValue,
  5. String? placeholder,
  6. bool obscure = false,
  7. String? validate(
    1. String value
    )?,
  8. void onSubmit(
    1. String value
    )?,
  9. void onChanged(
    1. String value
    )?,
  10. bool lockOnSubmit = true,
  11. String askPrefix = '?',
  12. String errorPrefix = '✗',
  13. String successPrefix = '✓',
  14. Style? messageStyle,
  15. Style? inputStyle,
  16. Style? defaultValueStyle,
  17. Style? errorStyle,
  18. Style? askPrefixStyle,
  19. Style? errorPrefixStyle,
  20. Style? successPrefixStyle,
})

Implementation

const Input({
  Key? id,
  required this.message,
  required this.state,
  this.defaultValue,
  this.placeholder,
  this.obscure = false,
  this.validate,
  this.onSubmit,
  this.onChanged,
  this.lockOnSubmit = true,
  this.askPrefix = '?',
  this.errorPrefix = '✗',
  this.successPrefix = '✓',
  this.messageStyle,
  this.inputStyle,
  this.defaultValueStyle,
  this.errorStyle,
  this.askPrefixStyle,
  this.errorPrefixStyle,
  this.successPrefixStyle,
}) : _id = id;