Add explicit getter and setter for Simulation Speed
In preparation for adding additional logic as a quasi-callback to execute whenever the simSpeed changes (i.e. the slider is changed)
This commit is contained in:
parent
7d5b1cfe30
commit
588a3ad2a0
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@ class ConfigurationService {
|
|||
final EngineService engineService;
|
||||
|
||||
bool showGrid;
|
||||
int simSpeed;
|
||||
|
||||
int _simSpeed;
|
||||
int get simSpeed => _simSpeed;
|
||||
void set simSpeed(int val) {
|
||||
_simSpeed = 5;
|
||||
}
|
||||
|
||||
ConfigurationService(this.engineService) {
|
||||
showGrid = false;
|
||||
|
|
Loading…
Reference in a new issue