Meshagent constructor

Meshagent({
  1. required String baseUrl,
  2. required String token,
  3. AccessTokenProvider? tokenProvider,
})

Creates an instance of Meshagent.

baseUrl is the root URL of your server, e.g. 'http://localhost:8080'. token is your Bearer token for authorization.

Implementation

Meshagent({required this.baseUrl, required this.token, AccessTokenProvider? tokenProvider})
  : httpClient = _TokenProviderClient(http.Client(), tokenProvider ?? SimpleAccessTokenProvider(token));