getToken method

dynamic getToken(
  1. {dynamic context,
  2. dynamic clientId,
  3. dynamic clientSecret,
  4. dynamic callbackUrl}
)

Implementation

getToken({context,clientId,clientSecret,callbackUrl}) async {
  final code = await Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => LinkedInAuth(clientId: clientId,callBackUrl: callbackUrl),
      ));
  if (code != null) {
    return callTokenApi(code,clientId,clientSecret,callbackUrl);
  }
}