isCustomerLoggedIn method
Confirm if a customer is logged in true
or out false
.
Implementation
Future<bool> isCustomerLoggedIn() async {
String sToken = await _localDbService.getSecurityToken();
if (sToken == '0') {
return false;
} else {
return true;
}
}