signOut method

Future<void> signOut()

Sign out if you are already signed in.

すでにサインインしている場合サインアウトします。

Implementation

Future<void> signOut() async {
  await _initialize();
  final account = active;
  if (account == null) {
    throw Exception(
      "You are not signed in. Please sign in with [signIn] first.",
    );
  }
  _activeId = null;
  _data._clearTemporary();
  _data._clearCurrent();
  await onSaved?.call(this);
}