ifscCodeValidate method

bool ifscCodeValidate({
  1. required String content,
})

This Method will validate your content from Account Number Format. content Content is a Required parameter. Pass your inputed or that value which you want to compare with Account Number format.

Implementation

bool ifscCodeValidate({required String content}) {
    if (content.length != 11) {
      return false;
    } else {
      return RegExp(r"^[A-Z]{4}[0]{1}[0-9A-Z}[6]").hasMatch(content);
    }
  }