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(
- String
)?,
- bool password = false,
- required TextEditingController controller,
- bool readOnly = false,
- TextEditingController? sameTo,
- Color readOnlyColor = const Color(0xFFE9EAEE),
- String? sameToMessage}
)
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.sameToMessage})
: super(key: key);