verificarIgualdad static method

bool verificarIgualdad(
  1. String? texto1,
  2. String? texto2
)

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);
}