FieldDefault constructor
const
FieldDefault({
- Key? key,
- TextEditingController? controller,
- String? title,
- required String hint,
- ValidationType? validationType,
- String? validatorMessage,
- String? valuePassword2,
- TextInputAction? textInputAction = TextInputAction.next,
- TextInputType? textInputType = TextInputType.text,
- EdgeInsets margin = const EdgeInsets.fromLTRB(0, 0, 0, 20),
- bool obscureText = false,
- bool readOnly = false,
- dynamic onChanged()?,
- Function? onTap,
- int maxLines = 1,
- int minLines = 1,
- int? maxLength,
- Widget? suffixIcon,
- bool isDatePicker = false,
- bool isWithNumberFormatter = false,
- bool isWithNpwpFormatter = false,
- String? validator()?,
- String? counterText,
- TextCapitalization? textCapitalization,
- int? minLength,
Implementation
const FieldDefault({
super.key,
this.controller,
this.title,
required this.hint,
this.validationType,
this.validatorMessage,
this.valuePassword2,
this.textInputAction = TextInputAction.next,
this.textInputType = TextInputType.text,
this.margin = const EdgeInsets.fromLTRB(0, 0, 0, 20),
this.obscureText = false,
this.readOnly = false,
this.onChanged,
this.onTap,
this.maxLines = 1,
this.minLines = 1,
this.maxLength,
this.suffixIcon,
this.isDatePicker = false,
this.isWithNumberFormatter = false,
this.isWithNpwpFormatter = false,
this.validator,
this.counterText,
this.textCapitalization,
this.minLength,
});