Input constructor
const
Input({
- Key? id,
- required String message,
- required InputState state,
- String? defaultValue,
- String? placeholder,
- bool obscure = false,
- String? validate(
- String value
- void onSubmit(
- String value
- void onChanged(
- String value
- bool lockOnSubmit = true,
- String askPrefix = '?',
- String errorPrefix = '✗',
- String successPrefix = '✓',
- Style? messageStyle,
- Style? inputStyle,
- Style? defaultValueStyle,
- Style? errorStyle,
- Style? askPrefixStyle,
- Style? errorPrefixStyle,
- 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;