isCurrentValueIsGreaterThanAudience method
Compare greater than
Implementation
bool isCurrentValueIsGreaterThanAudience(dynamic currentValue, dynamic audienceValue) {
if (currentValue is num && audienceValue is num) {
return (currentValue > audienceValue);
} else if (currentValue is String && audienceValue is String) {
return (currentValue.compareTo(audienceValue) == 1);
} else {
return false;
}
}