getNumSigners method

int getNumSigners()

Counts the number of accounts that are signers.

Implementation

int getNumSigners() =>
    fold(0, (total, account) => total + (account.isSigner ? 1 : 0));