notify method
Implementation
Future<void> notify(
AtKey atKey,
String value, {
required bool checkForFinalDeliveryStatus,
required bool waitForFinalDeliveryStatus,
required Duration ttln,
}) async {
await atClient.notificationService.notify(
NotificationParams.forUpdate(atKey,
value: value, notificationExpiry: ttln),
checkForFinalDeliveryStatus: checkForFinalDeliveryStatus,
waitForFinalDeliveryStatus: waitForFinalDeliveryStatus,
onSuccess: (NotificationResult notification) {
logger.info('SUCCESS:$notification with key: ${atKey.toString()}');
},
onError: (notification) {
logger.info('ERROR:$notification');
},
);
}