MemoryGate constructor

MemoryGate({
  1. int maxBytes = 256 * 1024 * 1024,
  2. int safetyMarginBytes = 1024 * 1024 * 1024,
})

Implementation

MemoryGate({
  this.maxBytes = 256 * 1024 * 1024, // 256 MB default
  this.safetyMarginBytes = 1024 * 1024 * 1024, // 1 GB safety margin
});