listenBucketNotification method

NotificationPoller listenBucketNotification(
  1. String bucket,
  2. {String? prefix,
  3. String? suffix,
  4. List<String>? events}

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.


NotificationPoller listenBucketNotification(
  String bucket, {
  String? prefix,
  String? suffix,
  List<String>? events,
}) {

  final poller = NotificationPoller(_client, bucket, prefix, suffix, events);


  return poller;