addAllIf method

void addAllIf(
  1. dynamic condition,
  2. Map<K, V> values
)

Implementation

void addAllIf(dynamic condition, Map<K, V> values) {
  if (condition is Condition) condition = condition();
  if (condition is bool && condition) addAll(values);
}