AssetStore class
A class for storing references to assets.
- Annotations
-
- @JsonSerializable()
Constructors
-
AssetStore({required String filename, required String destination, required List<
AssetReferenceReference> assets, String? comment}) -
Create an instance.
const
- AssetStore.fromFile(File file)
-
Create an instance from
file
.factory -
AssetStore.fromJson(Map<
String, dynamic> json) -
Create an instance from a JSON object.
factory
Properties
-
assets
→ List<
AssetReferenceReference> -
All the assets in this store.
final
- comment → String?
-
The comment at the top of the resulting dart file.
final
- destination → String
-
The directory where all files will end up.
final
- directory → Directory
-
The directory where assets will reside.
no setter
- filename → String
-
The dart filename for this store.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dump(
File file) → void -
Dump an instance to
file
.inherited -
getAbsoluteDirectory(
Directory relativeTo) → Directory -
Get an absolute version of directory, relative to
relativeTo
. -
getNextFilename(
{String suffix = '', Directory? relativeTo}) → String - Get an unused filename.
-
importDirectory(
{required Directory source, required String variableName, String? comment, Directory? relativeTo}) → AssetReferenceReference - Import a directory.
-
importFile(
{required File source, required String variableName, String? comment, Directory? relativeTo}) → AssetReferenceReference - Import a single file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert an instance to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited