addIf method
void
addIf(
- dynamic condition,
- K key,
- V value
Implementation
void addIf(/* bool | Condition */ condition, K key, V value) {
if (condition is Condition) condition = condition();
if (condition is bool && condition) this[key] = value;
}