isCurrentValueIsGreaterThanOrEqualAudience method

bool isCurrentValueIsGreaterThanOrEqualAudience(
  1. dynamic currentValue,
  2. dynamic audienceValue
)

Compare greater than or equal

Implementation

bool isCurrentValueIsGreaterThanOrEqualAudience(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 || currentValue.compareTo(audienceValue) == 0);
  } else {
    return false;
  }
}