writeNotNull method

void writeNotNull(
  1. String key,
  2. dynamic value
)

Write key with value to Map when the value is not null.

Implementation

void writeNotNull(String key, dynamic value) {
  if (value != null) {
    this[key] = value;
  }
}