OfflineLimits constructor

const OfflineLimits({
  1. int maxRecords = 1000,
  2. int maxBytes = 10 * 1024 * 1024,
  3. int maxAgeSeconds = 7 * 86400,
})

Implementation

const OfflineLimits({
  this.maxRecords = 1000,
  this.maxBytes = 10 * 1024 * 1024,
  this.maxAgeSeconds = 7 * 86400,
}) : assert(maxRecords > 0 && maxRecords <= 10000),
     assert(maxBytes > 0 && maxBytes <= 100 * 1024 * 1024),
     assert(maxAgeSeconds > 0 && maxAgeSeconds <= 30 * 86400);