llpinValidate method
This Method will validate your content from LLPIN Number Format.
content
Content is a Required parameter. Pass your inputed or that value which you want to compare with LLPIN Number format.
Implementation
bool llpinValidate({required String content}) {
if (content.length != 8) {
return false;
} else {
return RegExp(r"^[A-Z]{3}[-]{1}[0-9]{4}").hasMatch(content);
}
}