getNextSequence method

int getNextSequence()

Implementation

int getNextSequence() {
  _sequence++;
  try {
    _prefs?.setInt(_sequenceKey, _sequence);
  } catch (e) {
    // Continuar sin persistir si falla
  }
  return _sequence;
}