progress method

({int current, int requiredApprovals}) progress(
  1. int threshold
)

Get approval progress

Returns: Current approvals and required threshold

Example:

final progress = storage.progress(signatories.threshold);
print('${progress.current}/${progress.required} approvals');

Implementation

({int current, int requiredApprovals}) progress(final int threshold) {
  return (current: approvals.length, requiredApprovals: threshold);
}