ModerationDecision.merge constructor

ModerationDecision.merge(
  1. List<ModerationDecision> decisions
)

Implementation

factory ModerationDecision.merge(final List<ModerationDecision> decisions) {
  if (decisions.isEmpty) return ModerationDecision.init();

  return ModerationDecision._(
    did: decisions.first.did,
    me: decisions.first.me,
    causes: decisions.expand((e) => e.causes).toList(),
  );
}