CustomTextFormField.withLabel constructor
CustomTextFormField.withLabel({})
Implementation
factory CustomTextFormField.withLabel({
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 = '',
}) {
return _CustomTextFormFieldLabel(
controller: controller,
textInputType: textInputType,
validation: validation ?? (value) => true,
hint: hint,
errorMsg: errorMsg,
nextFocus: nextFocus,
myFocus: myFocus,
enable: enable,
maxLines: maxLines,
icon: icon,
label: label,
);
}