getNumReadonlyNonSigners method

int getNumReadonlyNonSigners()

Counts the number of accounts that are non signers and readonly.

Implementation

int getNumReadonlyNonSigners() => fold(
      0,
      (total, account) =>
          total + (!account.isWriteable && !account.isSigner ? 1 : 0),
    );