notify method
Returns true
on notifying key
with value
, operation
.
Implementation
Future<bool> notify(AtKey key, String value, OperationEnum operation,
Function onDone, Function onError) async {
var notificationResponse = await AtClientManager.getInstance()
.atClient
.notificationService
.notify(_getNotificationParams(key, value, operation))
.timeout(Duration(seconds: AppConstants.responseTimeLimit),
onTimeout: () => _onTimeOut());
return notificationResponse.notificationStatusEnum ==
NotificationStatusEnum.delivered;
}