LuckyCanvasCompatOptions constructor

const LuckyCanvasCompatOptions({
  1. double remBase = kCompatRemBase,
  2. double? viewportWidth,
  3. double handleCssUnit(
    1. double value,
    2. String unit
    )?,
  4. LuckyTimebase timebase = LuckyTimebase.time,
  5. LuckyStopSolver stopSolver = const MonotonicStopSolver(),
  6. bool honorSpeedFunction = false,
  7. bool honorDisabled = false,
  8. ImageProvider<Object> assetResolver(
    1. String src
    )?,
})

创建迁移选项;默认使用有效时间与单调停止求解。

Implementation

const LuckyCanvasCompatOptions({
  this.remBase = kCompatRemBase,
  this.viewportWidth,
  this.handleCssUnit,
  this.timebase = LuckyTimebase.time,
  this.stopSolver = const MonotonicStopSolver(),
  this.honorSpeedFunction = false,
  this.honorDisabled = false,
  this.assetResolver,
});