getTokensUsed static method
Implementation
static int getTokensUsed(List<Attachment> attachments) => attachments.fold(0,
(acc, attachment) => acc + (attachment.active ? attachment.tokens : 0));
static int getTokensUsed(List<Attachment> attachments) => attachments.fold(0,
(acc, attachment) => acc + (attachment.active ? attachment.tokens : 0));