sum function

int? sum(
  1. dynamic value,
  2. dynamic element
)

Implementation

int? sum(value, element) => (value ?? 0) + (element ?? 0);