BinaryNamedFileRepository class abstract

Repository to store binary files.

Implemented types
Mixed-in types

Constructors

BinaryNamedFileRepository({String? fileFolder})

Properties

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

Methods

content(String name) Future<Uint8List?>
name must specify the extension.
override
createDirectory(String path, String newFolder) Future<void>
Creates a folder named newFolder inside the path specified by path.
inherited
createDirectorySync(String path, String newFolder) → void
SYNCHRONOUS VERSION
inherited
deleteContent(String name) Future<void>
name must specify the extension.
override
deleteFile(String fileFolder, String fileName) Future<void>
Deletes a file.
inherited
deleteFileSync(String fileFolder, String fileName) → void
SYNCHRONOUS VERSION
inherited
filePath(String name) Future<String>
Returns the path of a file stored with name name. Requires to be implemented with another repository interface.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFromFile(String fileFolder, String fileName, {bool byteMode = false}) Future
Reads from a file and returns the content on the form of a String or Uint8List.
inherited
readFromFileSync(String fileFolder, String fileName, {bool byteMode = false}) → dynamic
Reads from a file and returns the content on the form of a String or Uint8List.
inherited
saveContent(String name, Uint8List content) Future<void>
name must specify the extension.
override
saveToFile(String fileFolder, String fileName, dynamic fileContent, {bool append = false, bool byteMode = false}) Future<void>
Saves on a file (which path is fileFolder/fileName) the content in fileContent.
inherited
saveToFileSync(String fileFolder, String fileName, dynamic fileContent, {bool append = false, bool byteMode = false}) → void
SYNCHRONOUS VERSION
inherited
setFileFolder([String fileFolder = ""]) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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