FlutterPwValidator constructor
FlutterPwValidator({
- required double width,
- required double height,
- required int minLength,
- required Function onSuccess,
- required TextEditingController controller,
- int uppercaseCharCount = 0,
- int lowercaseCharCount = 0,
- int numericCharCount = 0,
- int specialCharCount = 0,
- int normalCharCount = 0,
- Color defaultColor = MyColors.gray,
- Color successColor = MyColors.green,
- Color failureColor = MyColors.red,
- FlutterPwValidatorStrings? strings,
- Function? onFail,
- Key? key,
Implementation
FlutterPwValidator(
{required this.width,
required this.height,
required this.minLength,
required this.onSuccess,
required this.controller,
this.uppercaseCharCount = 0,
this.lowercaseCharCount = 0,
this.numericCharCount = 0,
this.specialCharCount = 0,
this.normalCharCount = 0,
this.defaultColor = MyColors.gray,
this.successColor = MyColors.green,
this.failureColor = MyColors.red,
this.strings,
this.onFail,
this.key}) {
//Initial entered size for global use
SizeConfig.width = width;
SizeConfig.height = height;
}