From 588a3ad2a0dcd60dc2d96f2a42bf633d2b8f5c5c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 25 Aug 2018 15:26:44 +0200 Subject: [PATCH] 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) --- lib/service/configuration_service.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/service/configuration_service.dart b/lib/service/configuration_service.dart index 7da2ca6..083b7fb 100644 --- a/lib/service/configuration_service.dart +++ b/lib/service/configuration_service.dart @@ -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;