getOwnerVm method

BaseVm getOwnerVm()

获取当前 VmSub 的所有者 ViewModel

@return 所有者 ViewModel 实例 @throws Exception 如果 _ownerVm 未注册

Implementation

BaseVm getOwnerVm() {
  if (_ownerVm == null) {
    throw Exception("_ownerVm 未注册");
  }
  return _ownerVm!;
}