double getAttrDouble(String attribute) => using((refs) { final attr = refs(getAttr(attribute)); return attr.asDouble(); });