verificarIgualdad static method
Verifica que dos grupo de caracteres sea exactamente iguales Si alguno de los 2 valores es null o esta en blanco devuelve false
Implementation
static bool verificarIgualdad(String? texto1, String? texto2) {
if (texto1 == null ||
texto1.trim().isEmpty ||
texto2 == null ||
texto2.trim().isEmpty) {
return false;
}
return _patron(".*$texto1.*").hasMatch(texto2);
}