updateMapCondition method

void updateMapCondition(
  1. String? fieldName,
  2. Object value
)

Implementation

void updateMapCondition(String? fieldName, Object value) {
  if (fieldName == null) return;
  mapCondition.update(
    fieldName,
    (_) => value,
    ifAbsent: () => value,
  );
}