addAllIf method

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

Implementation

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