FileInfo class abstract

FileInfo

Properties:

  • id - The unique identifier for this file
  • userId - The ID of the user that uploaded this file
  • postId - If this file is attached to a post, the ID of that post
  • createAt - The time in milliseconds a file was created
  • updateAt - The time in milliseconds a file was last updated
  • deleteAt - The time in milliseconds a file was deleted
  • name - The name of the file
  • extension_ - The extension at the end of the file name
  • size - The size of the file in bytes
  • mimeType - The MIME type of the file
  • width - If this file is an image, the width of the file
  • height - If this file is an image, the height of the file
  • hasPreviewImage - If this file is an image, whether or not it has a preview-sized version

Constructors

FileInfo([void updates(FileInfoBuilder b)])
factory

Properties

createAt int?
The time in milliseconds a file was created
no setter
deleteAt int?
The time in milliseconds a file was deleted
no setter
extension_ String?
The extension at the end of the file name
no setter
hashCode int
The hash code for this object.
no setterinherited
hasPreviewImage bool?
If this file is an image, whether or not it has a preview-sized version
no setter
height int?
If this file is an image, the height of the file
no setter
id String?
The unique identifier for this file
no setter
mimeType String?
The MIME type of the file
no setter
name String?
The name of the file
no setter
postId String?
If this file is attached to a post, the ID of that post
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
The size of the file in bytes
no setter
updateAt int?
The time in milliseconds a file was last updated
no setter
userId String?
The ID of the user that uploaded this file
no setter
width int?
If this file is an image, the width of the file
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(FileInfoBuilder)) FileInfo
Rebuilds the instance.
inherited
toBuilder() FileInfoBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

serializer → Serializer<FileInfo>
no setter