DriveItem class

Represents an item within a drive in Microsoft Graph API.

A DriveItem is an item stored in a drive, like a file or folder.

Annotations
  • @JsonSerializable.new()

Constructors

DriveItem({String? id, String? name, String? webUrl, int? size, ItemReference? parentReference, String? createdDateTime, String? lastModifiedDateTime, IdentitySet? createdBy, IdentitySet? lastModifiedBy, File? file, Folder? folder, String? eTag, String? contentType})
Creates a new DriveItem instance.
DriveItem.fromJson(Map<String, dynamic> json)
Creates a DriveItem instance from JSON data.
factory

Properties

contentType → String?
The content type of the drive item.
final
createdBy → IdentitySet?
The identity of the user who created the drive item.
final
createdDateTime → String?
The date and time when the drive item was created.
final
eTag → String?
The eTag of the drive item.
final
file → File?
File metadata if the drive item is a file.
final
folder → Folder?
Folder metadata if the drive item is a folder.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The unique identifier of the drive item.
final
isFile → bool
Checks if this drive item is a file.
no setter
isFolder → bool
Checks if this drive item is a folder.
no setter
lastModifiedBy → IdentitySet?
The identity of the user who last modified the drive item.
final
lastModifiedDateTime → String?
The date and time when the drive item was last modified.
final
name → String?
The name of the drive item.
final
parentReference → ItemReference?
Information about the drive item's parent folder.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int?
The size of the drive item in bytes.
final
webUrl → String?
The URL that displays the item in the browser.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this DriveItem instance to JSON data.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited