setToken method

void setToken(
  1. String ntoken, {
  2. String? refreshToken,
})

Implementation

void setToken(String ntoken, {String? refreshToken}) {
  _token = {'Authorization': 'Bearer $ntoken'};
  if (refreshToken != null) {
    _refreshToken = refreshToken;
  }
}