setToken method Null safety

Future<void> setToken(
  1. String password
)

Saves the authentication access token in storage, given the password.

Implementation

Future<void> setToken(String password) async {
  await _saveString(
    _tokenKey,
    base64Encode(utf8.encode('$code:$password')),
  );
}