notif_removeKeyRecursive method

void notif_removeKeyRecursive({
  1. required List<String> ignoreKeys,
})

Implementation

void notif_removeKeyRecursive({
  required List<String> ignoreKeys,
}) {
  removeWhere((key, value) {
    if (ignoreKeys.contains(key)) {
      return true;
    }
    if (value is Map) {
      value.notif_removeKeyRecursive(ignoreKeys: ignoreKeys);
    }
    return false;
  });
  return;
}