getFastVm method

FastVm getFastVm()

获取 FastVm 实例

@return FastVm 实例 @throws Exception 如果所有者 ViewModel 不是 FastVm

Implementation

FastVm getFastVm() {
  BaseVm ownerVm = getOwnerVm();
  if (ownerVm is FastVm) {
    return ownerVm;
  }
  throw Exception("ownerVm 不是 FastVm");
}