isCurrentValueContainAudience method

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

Compare contain

Implementation

bool isCurrentValueContainAudience(dynamic currentValue, dynamic audienceValue) {
  if (currentValue is String && audienceValue is String) {
    return (currentValue).contains(audienceValue);
  }
  return false;
}