NotifyOptions constructor

NotifyOptions({
  1. required String fileSystemId,
  2. required String observedPath,
  3. required bool recursive,
  4. required ChangeType changeType,
  5. List<Change>? changes,
  6. String? tag,
})

Implementation

NotifyOptions({
  /// The identifier of the file system related to this change.
  required String fileSystemId,

  /// The path of the observed entry.
  required String observedPath,

  /// Mode of the observed entry.
  required bool recursive,

  /// The type of the change which happened to the observed entry. If it is
  /// DELETED, then the observed entry will be automatically removed from the
  /// list of observed entries.
  required ChangeType changeType,

  /// List of changes to entries within the observed directory (including the
  /// entry itself)
  List<Change>? changes,

  /// Tag for the notification. Required if the file system was mounted with
  /// the `supportsNotifyTag` option. Note, that this flag is
  /// necessary to provide notifications about changes which changed even
  /// when the system was shutdown.
  String? tag,
}) : _wrapped = $js.NotifyOptions(
        fileSystemId: fileSystemId,
        observedPath: observedPath,
        recursive: recursive,
        changeType: changeType.toJS,
        changes: changes?.toJSArray((e) => e.toJS),
        tag: tag,
      );