MiniProgramLiveStatePolicy constructor

const MiniProgramLiveStatePolicy({
  1. int maxBytes = 2 * 1024 * 1024,
  2. int maxEntries = 1000,
  3. int maxValueBytes = 256 * 1024,
  4. int maxDepth = 32,
})

Implementation

const MiniProgramLiveStatePolicy({
  this.maxBytes = 2 * 1024 * 1024,
  this.maxEntries = 1000,
  this.maxValueBytes = 256 * 1024,
  this.maxDepth = 32,
}) : assert(maxBytes > 0),
     assert(maxEntries > 0),
     assert(maxValueBytes > 0),
     assert(maxValueBytes <= maxBytes),
     assert(maxDepth > 0);