toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  return 'File(category: $category, id: $id, fileName: $fileName, size: $size, mimeType: $mimeType, parentFolder: $parentFolder, createdTime: $createdTime, editedTime: $editedTime, description: $description, owners: $owners, favorite: $favorite, recycled: $recycled, appSettings: $appSettings, properties: $properties, capabilities: $capabilities, contentExtras: $contentExtras, writerHasCopyPermission: $writerHasCopyPermission, directlyRecycled: $directlyRecycled, fileSuffix: $fileSuffix, fullFileSuffix: $fullFileSuffix, existThumbnail: $existThumbnail, iconDownloadLink: $iconDownloadLink, pictureMetadata: $pictureMetadata, isAppAuthorized: $isAppAuthorized, lastEditor: $lastEditor, editedByMe: $editedByMe, editedByMeTime: $editedByMeTime, ownedByMe: $ownedByMe, permissionIds: $permissionIds, permissions: $permissions, occupiedSpace: $occupiedSpace, sha256: $sha256, hasShared: $hasShared, sharedWithMeTime: $sharedWithMeTime, sharer: $sharer, containers: $containers, thumbnailDownloadLink: $thumbnailDownloadLink, smallThumbnailDownloadLink: $smallThumbnailDownloadLink, recycledTime: $recycledTime, recyclingUser: $recyclingUser, videoMetadata: $videoMetadata, contentDownloadLink: $contentDownloadLink, writersHasSharePermission: $writersHasSharePermission, contentVersion: $contentVersion, lastHistoryVersionId: $lastHistoryVersionId, originalFilename: $originalFilename, thumbnailVersion: $thumbnailVersion, version: $version, onLineViewLink: $onLineViewLink)';
}