onSignedOut method
退出、会话结束、切换用户:清除内存中的数据、释放列表。
Implementation
@override
void onSignedOut() {
_closing = true;
for (final handle in [..._handles.values]) {
unawaited(handle.teardown(true));
}
_closing = false;
for (final id in [..._leaderBeats.keys]) {
_stopLeaderBeat(id);
}
_handles.clear();
_banners.clear();
_savedCurrent = null;
}