requireSignedIn method

void requireSignedIn()

已登录:本地存储已打开,或者已有会话、正在打开。

Implementation

void requireSignedIn() {
  if (_signedIn) return;
  if (!_destroyed && auth.currentUser != null) return;
  throw localError(LocalErrorCode.notSignedIn);
}