deleteToken method

Future<void> deleteToken(
  1. DeleteTokenParams deleteTokenParams
)

Revokes a granted token. deleteTokenParams Parameters for deleteToken. returns Function called when the token deletion completes. The token was revoked successfully if runtime.lastError is not set.

Implementation

Future<void> deleteToken(DeleteTokenParams deleteTokenParams) async {
  await promiseToFuture<void>(
      $js.chrome.instanceId.deleteToken(deleteTokenParams.toJS));
}