Function to get a double from the room
double? getDouble(String key) { var cdata = getKey(key); try { return cdata as double; } catch (e) { return null; } }