agar function

bool agar(
  1. dynamic firstValue,
  2. String operator,
  3. dynamic secondValue
)

A Calculator.

Implementation

bool agar(dynamic firstValue,String operator,dynamic secondValue){
  if(operator=="=") {
      return firstValue == secondValue;
    }

  if(operator=="!=") {
      return firstValue != secondValue;
    }

  if(operator==">") {
      return firstValue > secondValue;
    }

  if(operator==">=") {
      return firstValue >= secondValue;
    }

  if(operator=="<=") {
      return firstValue <= secondValue;
    }
  if(operator=="<"){
      return firstValue < secondValue;
    }
  return false;

}