UsageEventStore constructor

UsageEventStore(
  1. String dataDir, {
  2. int rotateBytes = 5 * 1024 * 1024,
  3. int keepOnRotate = 5000,
  4. int archiveMaxBytes = 20 * 1024 * 1024,
  5. Duration retryAfter = const Duration(minutes: 5),
})

Implementation

UsageEventStore(
  this.dataDir, {
  this.rotateBytes = 5 * 1024 * 1024,
  this.keepOnRotate = 5000,
  this.archiveMaxBytes = 20 * 1024 * 1024,
  this.retryAfter = const Duration(minutes: 5),
}) {
  lastId = _readLastId();
}