timeScale property
double
get
timeScale
Returns the current time scale.
Implementation
double get timeScale => _timeScale;
set
timeScale
(double value)
Sets the time scale to given value if it is non-negative. Note: Too high values will result in inconsistent gameplay and tunneling in physics.
Implementation
set timeScale(double value) {
if (value.isNegative) {
return;
}
_timeScale = value;
}