Object? getProperty(String propertyId) { if (!hasProperty(propertyId)) { throw UnknownPropertyError(id, propertyId); } return _state[propertyId]; }