EncryptFileLoader class
EncryptFileLoader is a class that loads, caches, and decrypts.
Constructors
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
-
deleteAll(
) → Future< int> - Delete all files. Returns the amount of rows that were deleted.
-
deleteGroup(
String group) → Future< int> -
Delete files that belong to the
group
. Returns the amount of rows that were deleted. -
deleteOldFiles(
DateTime base) → Future< int> -
Delete files older than the
base
. Returns the amount of rows that were deleted. -
getData(
{required String url, required CryptoType type}) → Future< DecryptResult?> -
Get
DecryptResult
from db, and decrypt byCryptoType
. -
load(
{required String url, ResponseType responseType = ResponseType.bodyBytes, String group = 'no_group'}) → Future< LoadResult> - Load file from server or internal db.
-
loadAndDecrypt(
{required String url, required CryptoType type, ResponseType responseType = ResponseType.bodyBytes, String group = 'no_group'}) → Future< LoaderResult> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
vacuum(
) → Future< void> - Rebuilds the database file, repacking it into a minimal amount of disk space.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited