getBoxSelectIndex method

int getBoxSelectIndex()

获取选择索引,如果为空则返回-1

Implementation

int getBoxSelectIndex() {
  return boxSelectIndex ?? -1;
}