instance property
CustomerSession
get
instance
Get the current customer session
Implementation
static CustomerSession get instance {
if (_instance == null) {
throw Exception(
'Attempted to get instance of CustomerSession before initialization. Please initialize a new session using [CustomerSession.initCustomerSession() first.]');
}
assert(_instance!._assertNotDisposed());
return _instance!;
}