unregister method
Stop delivering to a token (call on logout/uninstall). Defaults to the last registered token.
Implementation
Future<void> unregister([String? token]) async {
final t = token ?? _token;
if (t == null) return;
await _http.post('/partner/push/unregister', {'token': t});
if (t == _token) _token = null;
}