LuckyCanvasCompatOptions constructor
const
LuckyCanvasCompatOptions({
- double remBase = kCompatRemBase,
- double? viewportWidth,
- double handleCssUnit()?,
- LuckyTimebase timebase = LuckyTimebase.time,
- LuckyStopSolver stopSolver = const MonotonicStopSolver(),
- bool honorSpeedFunction = false,
- bool honorDisabled = false,
- ImageProvider<
Object> assetResolver(- 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,
});