SVGAParser constructor

const SVGAParser({
  1. Duration requestTimeout = const Duration(seconds: 30),
  2. int maxInputBytes = 64 * 1024 * 1024,
  3. int maxInflatedBytes = 128 * 1024 * 1024,
  4. int maxImagePixels = 16777216,
  5. int maxDecodedImageBytes = 256 * 1024 * 1024,
  6. bool retainSourceImages = true,
})

Limits apply to downloads, inflation and decoded bitmap allocation.

Implementation

const SVGAParser({
  this.requestTimeout = const Duration(seconds: 30),
  this.maxInputBytes = 64 * 1024 * 1024,
  this.maxInflatedBytes = 128 * 1024 * 1024,
  this.maxImagePixels = 16777216,
  this.maxDecodedImageBytes = 256 * 1024 * 1024,
  this.retainSourceImages = true,
});