withoutPhysics method

LottoOptions withoutPhysics()

返回去掉物理模式、其余字段不变的副本,例如关闭 LottoOptions(physics: ...)。

Implementation

LottoOptions withoutPhysics() => LottoOptions(
    drawInterval: drawInterval,
    ballFlightTime: ballFlightTime,
    sortResults: sortResults,
    drawMix: drawMix,
    ballRadiusFactor: ballRadiusFactor,
    motion: motion);