confirmPasswordValidaor static method

String? confirmPasswordValidaor(
  1. String? password,
  2. String? cPassword
)

Implementation

static String? confirmPasswordValidaor(String? password, String? cPassword) {
  if (password != cPassword) {
    return "Password don't match";
  }
  return null;
}