addToMap method

void addToMap(
  1. String key,
  2. dynamic value,
  3. Map<String, dynamic> map
)

Implementation

void addToMap(String key, dynamic value, Map<String, dynamic> map) {
  if (value != null && value > 0) {
    map[key] = value;
  }
}