token property

String? get token

The current token, or null when no usable token is stored.

Implementation

String? get token {
  final value = storage.read(tokenKey);
  if (value == null || value.isEmpty) return null;
  return value;
}