token property Null safety

String token

Returns the token saved in storage if found, otherwise returns an empty string.

Implementation

String get token => _prefs.getString(_tokenKey) ?? '';