onSessionStateChanged property
EventStream<SessionState>
get
onSessionStateChanged
Dispatched when the session state changes. sessionState
is the new session state.
Implementation
EventStream<SessionState> get onSessionStateChanged =>
$js.chrome.loginState.onSessionStateChanged
.asStream(($c) => ($js.SessionState sessionState) {
return $c(SessionState.fromJS(sessionState));
});