LedgerTextField constructor
const
LedgerTextField({
- TextEditingController? controller,
- FocusNode? focusNode,
- String? label,
- String? hint,
- String? helper,
- String? error,
- String? prefix,
- Widget? trailing,
- bool isRequired = false,
- bool enabled = true,
- bool readOnly = false,
- bool obscureText = false,
- bool autofocus = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.none,
- List<
TextInputFormatter> ? inputFormatters, - Iterable<
String> ? autofillHints, - int? maxLines = 1,
- int? minLines,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onEditingComplete,
- LedgerStyle? style,
- Key? key,
A field named label on its rule.
Implementation
const LedgerTextField({
this.controller,
this.focusNode,
this.label,
this.hint,
this.helper,
this.error,
this.prefix,
this.trailing,
this.isRequired = false,
this.enabled = true,
this.readOnly = false,
this.obscureText = false,
this.autofocus = false,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.none,
this.inputFormatters,
this.autofillHints,
this.maxLines = 1,
this.minLines,
this.onChanged,
this.onSubmitted,
this.onEditingComplete,
this.style,
super.key,
}) : assert(maxLines == null || maxLines > 0),
assert(minLines == null || minLines > 0);