getToken method
Return a token that allows the authorized entity to access the service
defined by scope.
getTokenParams Parameters for getToken.
returns Resolves when the retrieval completes.
Implementation
Future<String> getToken(GetTokenParams getTokenParams) async {
var $res = await $js.chrome.instanceId.getToken(getTokenParams.toJS).toDart;
return $res.toDart;
}