LuckyPictureCache constructor

LuckyPictureCache({
  1. LuckyCacheMode mode = LuckyCacheMode.picture,
  2. int maxRasterSide = kLuckyDefaultMaxRasterSide,
  3. int maxRasterBytes = kLuckyDefaultMaxRasterBytes,
})

创建缓存;位图超过 maxRasterSide 或共享预算时由调用方回退到 Picture。

实验性(可能调整):maxRasterBytes 是共享占用上限,0 禁用 raster。

Implementation

LuckyPictureCache(
    {this.mode = LuckyCacheMode.picture,
    this.maxRasterSide = kLuckyDefaultMaxRasterSide,
    this.maxRasterBytes = kLuckyDefaultMaxRasterBytes});