StringInput constructor
const
StringInput({
- String title = '',
- String hint = '',
- required void onChanged(),
- void onSaved()?,
- TextInputType keyboardType = TextInputType.text,
- dynamic validator()?,
- List<
TextInputFormatter> inputFormatters = const [], - StringInputType type = StringInputType.normal,
- TextInputAction inputAction = TextInputAction.done,
- bool obscureText = false,
- EdgeInsets padding = EdgeInsets.zero,
- EdgeInsets margin = EdgeInsets.zero,
- String initialValue = '',
- StringInputStyle style = const StringInputStyle.neutral(),
- Key? key,
Implementation
const StringInput({
this.title = '',
this.hint = '',
required this.onChanged,
void Function(String)? onSaved,
this.keyboardType = TextInputType.text,
this.validator,
this.inputFormatters = const [],
this.type = StringInputType.normal,
this.inputAction = TextInputAction.done,
this.obscureText = false,
this.padding = EdgeInsets.zero,
this.margin = EdgeInsets.zero,
this.initialValue = '',
this.style = const StringInputStyle.neutral(),
Key? key,
}) : onSaved = onSaved ?? onChanged,
super(key: key);