GridOut class

Inheritance

Constructors

GridOut(GridFS fs, [Map<String, dynamic>? data])

Properties

aliases List<String>
no setterinherited
chunkSize int
getter/setter pairinherited
contentType String?
getter/setter pairinherited
data Map<String, dynamic>
getter/setter pairinherited
extraData Map<String, dynamic>
getter/setter pairinherited
filename String?
getter/setter pairinherited
fs GridFS
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pairinherited
length int?
getter/setter pairinherited
md5 String?
getter/setter pairinherited
metaData Map<String, dynamic>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uploadDate DateTime?
getter/setter pairinherited

Methods

delete() Future<void>
Removes this document from the bucket
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numChunks() int
inherited
save() Future<Map<String, dynamic>>
inherited
toFile(File file, {FileMode? mode, bool? overwriteExistingFile}) Future<File>
This method uses a different approach in writing to a file. It uses a temp file to store the data and then renames it to the correct name. If overwriteExisting file is true, and a file with the same name exists, it is overwitten, otherwise a suffix like "(n)" is appended to the file name, where n is a progressive number not yet assigned to any existing file in the system
toString() String
A string representation of this object.
inherited
validate() Future<bool>
inherited
writeTo(IOSink out) Future<int>
writeToFile(File file) Future
writeToFilename(String filename) Future

Operators

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