Config constructor

Config({
  1. String? workspace,
  2. String? userID,
  3. String? token,
})

Implementation

Config({this.workspace, this.userID, this.token}) {
  var cookie = _getCookie("profile");
  if (cookie != null) {
    this._profile =
        jsonDecode(Uri.decodeFull(cookie)) ?? "{}" as Map<dynamic, dynamic>;
    this.userID = this._profile["id"] ?? "";
  }
}