agarWidget function
Implementation
Widget agarWidget(dynamic firstValue,String operator,dynamic secondValue,Widget trueWidget,Widget falseWidget){
bool returnBool=false;
if(operator=="=") {
returnBool= firstValue == secondValue;
}
if(operator=="!="){
returnBool= firstValue != secondValue;
}
if(operator==">") {
returnBool= firstValue > secondValue;
}
if(operator==">=") {
returnBool= firstValue >= secondValue;
}
if(operator=="<=") {
returnBool= firstValue <= secondValue;
}
if(operator=="<") {
returnBool= firstValue < secondValue;
}
if(returnBool==true){
return trueWidget;
}else{
return falseWidget;
}
}