setupClient function
Implementation
void setupClient(
String appKey, String appSecret, String accessToken, String tokenSecret) {
_clientCredentials = new ClientCredentials(appKey, appSecret);
_credentials = new Credentials(accessToken, tokenSecret);
_client =
new Client(SignatureMethods.hmacSha1, _clientCredentials!, _credentials!);
}