AssetItem class

Implementers

Constructors

AssetItem({required String path, required String name, required String hash, required Lib lib, required SharedOptions options, Uint8List? content})

Properties

assetExists Future<bool>
no setter
checkOrCreateDustbin Future<void>
no setter
content Uint8List?
getter/setter pair
dustbinExists Future<bool>
no setter
dustbinPath String
no setter
hash String
final
hashCode int
The hash code for this object.
no setterinherited
isUse bool
no setter
lib Lib
final
name String
final
options SharedOptions
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove({bool useMemory = false, bool isFailTip = true}) Future<bool>
resume({bool useMemory = false, bool isFailTip = true}) Future<bool>
toModelString() String
toString() String
A string representation of this object.
inherited
toValueString() String
updateConttent() Future<void>

Operators

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

Static Methods

explainModel({required Lib lib, required SharedOptions options, required String content, required void callback(AssetItem asset)}) String
explainValue({required Lib lib, required SharedOptions options, required String content, required void callback(AssetItem asset)}) String
readFile(String path, Lib lib, SharedOptions options) Future<AssetItem?>

Constants

className → const String