EntryMetadata constructor

EntryMetadata({
  1. bool? isDirectory,
  2. String? name,
  3. double? size,
  4. JSAny? modificationTime,
  5. String? mimeType,
  6. String? thumbnail,
  7. CloudIdentifier? cloudIdentifier,
})

Implementation

EntryMetadata({
  /// True if it is a directory. Must be provided if requested in
  /// `options`.
  bool? isDirectory,

  /// Name of this entry (not full path name). Must not contain '/'. For root
  /// it must be empty. Must be provided if requested in `options`.
  String? name,

  /// File size in bytes. Must be provided if requested in
  /// `options`.
  double? size,

  /// The last modified time of this entry. Must be provided if requested in
  /// `options`.
  JSAny? modificationTime,

  /// Mime type for the entry. Always optional, but should be provided if
  /// requested in `options`.
  String? mimeType,

  /// Thumbnail image as a data URI in either PNG, JPEG or WEBP format, at
  /// most
  /// 32 KB in size. Optional, but can be provided only when explicitly
  /// requested by the [onGetMetadataRequested] event.
  String? thumbnail,

  /// Cloud storage representation of this entry. Must be provided if
  /// requested
  /// in `options` and the file is backed by cloud storage. For
  /// local files not backed by cloud storage, it should be undefined when
  /// requested.
  CloudIdentifier? cloudIdentifier,
}) : _wrapped = $js.EntryMetadata(
        isDirectory: isDirectory,
        name: name,
        size: size,
        modificationTime: modificationTime,
        mimeType: mimeType,
        thumbnail: thumbnail,
        cloudIdentifier: cloudIdentifier?.toJS,
      );