put method

Map put(
  1. String key,
  2. Object? value
)

Implementation

Map put(String key, Object? value) {
  if (value is String && value.isNotEmpty) {
    this[key] = value;
  } else if (value != null) {
    this[key] = value;
  }
  return this;
}