sameValidation function Null safety

bool sameValidation(
  1. String? value,
  2. String secondValue
)

Implementation

bool sameValidation(String? value, String secondValue) {
  return value != null && value == secondValue;
}