Meshagent constructor
Meshagent({
- required String baseUrl,
- required String token,
- 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));