deleteToken method
Deletes a notification token for the device.
Parameters:
deviceNotificationToken
: The DeviceNotificationToken to delete.
Returns:
- A Future that resolves to a boolean indicating the success of the operation.
Implementation
Future<bool> deleteToken(
DeviceNotificationToken deviceNotificationToken,
) async {
return dio
.post(
"/delete-token",
data: deviceNotificationToken.toJSON(),
)
.then(
(response) => response.data,
);
}