autoRotateState static method

String autoRotateState(
  1. bool enabled
)

Implementation

static String autoRotateState(bool enabled) => '<characteristic type="DisplayMgr">'
    '<parm name="Autorotate" value="${enabled ? 1 : 2}"/>'
    '</characteristic>';