nextCrypt method

void nextCrypt()
inherited

Advances to the next crypt object.

Implementation

void nextCrypt() {
  if (protectedCrypts.length < 2) {
    throw StateError('No next crypt available');
  }
  final expiredCrypt = protectedCrypts.removeAt(0);
  protectedExpiredCrypts.add(expiredCrypt);
}