refreshWith method

void refreshWith(
  1. String token
)

Updates the token with a new value and notifies listeners about the change.

Implementation

void refreshWith(String token) {
  this.token = token;
  notifyListeners();
}