FrappeStorageController class

Inheritance

Properties

config RenovationConfig
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkFolderExists(String folderDir) Future<RequestResponse<bool?>>
Returns bool within RequestResponse after querying the folder in Frappé backend.
override
clearCache() → void
Clears the cache. Currently empty method
inherited
createFolder({required String folderName, String? parentFolder = 'Home'}) Future<RequestResponse<bool?>>
Returns bool within RequestResponse after creating folder.
override
getByteList(dynamic file) Uint8List
Returns the file as Uint8List of a file.
inherited
getCore() Renovation
Gets the reference to the Renovation instance
inherited
getFileSize(dynamic file) int
Returns the file size depending on whether it's Uint8List or File.
inherited
getHostUrl() String
Returns the configured host URL towards the backend
inherited
getUrl(String? ref) String?
Returns the URL appended to the reference of the file using the hostUrl.
override
handleError(String? errorId, ErrorDetail? error) → ErrorDetail
Returns the ErrorDetail after manipulating an existing one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadFile(FrappeUploadFileParams uploadFileParams) → BehaviorSubject<FrappeUploadStatus>
Returns a BehaviorSubject that emit FrappeUploadStatus as the upload progresses using socket.io.
override
uploadViaHTTP(FrappeUploadFileParams uploadFileParams) Future<RequestResponse<FrappeUploadFileResponse?>>
Returns FrappeUploadFileResponse on uploading of file. This method should be used if uploadFile fails.
override
validateUploadFileArgs(FrappeUploadFileParams uploadFileParams) → void
Validate the arguments of the file to be uploaded.
override

Operators

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