setAuthTokenPrefix static method

dynamic setAuthTokenPrefix(
  1. String prefix
)

setAuthTokenPrefix method to set the token prefix There are some cases where token prefix is needed like Bearer, JWT etc

Example:

Service.setAuthTokenPrefix("Bearer ");
print(Service.getTokenPrefix); // Bearer

Implementation

static setAuthTokenPrefix(String prefix) => _authTokenPrefix = prefix;