listenBucketNotification method
NotificationPoller
listenBucketNotification(})
Listen for notifications on a bucket. Additionally one can provider filters for prefix, suffix and events. There is no prior set bucket notification needed to use this API. This is an MinIO extension API where unique identifiers are regitered and unregistered by the server automatically based on incoming requests.
Implementation
NotificationPoller listenBucketNotification(
String bucket, {
String? prefix,
String? suffix,
List<String>? events,
}) {
MinioInvalidBucketNameError.check(bucket);
final poller = NotificationPoller(_client, bucket, prefix, suffix, events);
poller.start();
return poller;
}