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:
Marty Oehme 2018-08-25 15:26:44 +02:00
parent 7d5b1cfe30
commit 588a3ad2a0

View file

@ -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;