isUnregisteredToken property
bool
get
isUnregisteredToken
True when the service says this device token is no longer valid, so the application should stop sending to it and prune its record.
Implementation
bool get isUnregisteredToken {
if (statusCode == 404) return true;
final body = responseBody;
if (body == null) return false;
return body.contains('UNREGISTERED') || body.contains('NOT_FOUND');
}