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?> -
namemust specify the extension.override -
createDirectory(
String path, String newFolder) → Future< void> -
Creates a folder named
newFolderinside the path specified bypath.inherited -
createDirectorySync(
String path, String newFolder) → void -
SYNCHRONOUS VERSION
inherited
-
deleteContent(
String name) → Future< void> -
namemust 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
StringorUint8List.inherited -
readFromFileSync(
String fileFolder, String fileName, {bool byteMode = false}) → dynamic -
Reads from a file and returns the content on the form of a
StringorUint8List.inherited -
saveContent(
String name, Uint8List content) → Future< void> -
namemust 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 infileContent.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