SmartField constructor
SmartField({
- Key? key,
- TextInputType type = TextInputType.text,
- required FocusNode focusNode,
- required FocusNode? nextFocus,
- TextInputAction? action,
- required String label,
- String? hint,
- String? errorMessage,
- bool mandatory = false,
- bool validate = false,
- int? maxLength,
- String? maxLengthMessage,
- int? minLength,
- String? minLengthMessage,
- VoidCallback? callback,
- dynamic onChange()?,
- bool password = false,
- required TextEditingController controller,
- bool readOnly = false,
- TextEditingController? sameTo,
- Color readOnlyColor = const Color(0xFFE9EAEE),
- TextCapitalization capitalization = TextCapitalization.none,
- String? sameToMessage,
- List<
TextInputFormatter> ? formatters, - String? initialValue,
Implementation
SmartField(
{Key? key,
this.type = TextInputType.text,
required this.focusNode,
required this.nextFocus,
this.action,
required this.label,
this.hint,
this.errorMessage,
this.mandatory = false,
this.validate = false,
this.maxLength,
this.maxLengthMessage,
this.minLength,
this.minLengthMessage,
this.callback,
this.onChange,
this.password = false,
required this.controller,
this.readOnly = false,
this.sameTo,
this.readOnlyColor = const Color(0xFFE9EAEE),
this.capitalization = TextCapitalization.none,
this.sameToMessage,
this.formatters,
this.initialValue})
: super(key: key);