deleteProperty method
Deletes a single property from the current subscription.
A more convenient way to delete a single property compared to deleteProperties.
Parameters:
property
: The name of the property to delete
Example:
await SuperFCM.instance.deleteProperty('temporary');
Implementation
Future<bool> deleteProperty(String property) async {
return _queueOrExecute("deleteProperty", () async {
logger.d('Deleting property: $property');
if (!(subscription?.properties?.containsKey(property) ?? false)) {
logger.v('Property $property does not exist');
return true;
}
return await deleteProperties([property]);
});
}