CustomTextFormField.withLabelAndCode constructor
CustomTextFormField.withLabelAndCode({})
Implementation
factory CustomTextFormField.withLabelAndCode({
TextInputType? textInputType = TextInputType.name,
TextEditingController? controller,
bool Function(String?)? validation,
String? hint = '',
String? errorMsg = '',
FocusNode? nextFocus,
FocusNode? myFocus,
bool? enable = true,
int? maxLines = 1,
IconData? icon,
String? label = '',
Code? code,
}) {
return _CustomTextFormFieldLabelCode(
controller: controller,
textInputType: textInputType,
validation: validation ?? (value) => true,
hint: hint,
errorMsg: errorMsg,
nextFocus: nextFocus,
myFocus: myFocus,
enable: enable,
maxLines: maxLines,
icon: icon,
label: label,
code: code,
);
}