unregisterPushToken method Null safety
- {required PushTokenType type,
- required String token}
Unregisters push token with type.
Once token has been unregistered from sendbird server, associated device
will not receive any push notification from sendbird.
Make sure to pass token that is for the specific PushTokenType
Implementation
Future<void> unregisterPushToken({
required PushTokenType type,
required String token,
}) async {
return _int.api.send(UserPushTokenUnregisterRequest(
type: type,
token: token,
));
}