isLoggedIn abstract method
Returns whether the given username
is logged in. If a
username
is not provided then this method will return
true if session is valid. This service method should
also initialize the internal state with current
logged in session state.
Implementation
Future<bool> isLoggedIn(
// the username to check if logged in
String username,
);