LedgerTextField constructor

const LedgerTextField({
  1. TextEditingController? controller,
  2. FocusNode? focusNode,
  3. String? label,
  4. String? hint,
  5. String? helper,
  6. String? error,
  7. String? prefix,
  8. Widget? trailing,
  9. bool isRequired = false,
  10. bool enabled = true,
  11. bool readOnly = false,
  12. bool obscureText = false,
  13. bool autofocus = false,
  14. TextInputType? keyboardType,
  15. TextInputAction? textInputAction,
  16. TextCapitalization textCapitalization = TextCapitalization.none,
  17. List<TextInputFormatter>? inputFormatters,
  18. Iterable<String>? autofillHints,
  19. int? maxLines = 1,
  20. int? minLines,
  21. ValueChanged<String>? onChanged,
  22. ValueChanged<String>? onSubmitted,
  23. VoidCallback? onEditingComplete,
  24. LedgerStyle? style,
  25. 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);