Returns the current stack level for an active overlay ID.
static int? getStackLevel(String id) { final content = getActiveById(id); return content?.stackLevel; }