FileAsset class
Represents a publication stored as a file on the local file system.
@param file File on the file system.
- Inheritance
-
- Object
- PublicationAsset
- FileAsset
Constructors
Properties
- file → FileSystemEntity
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- knownMediaType → MediaType?
-
final
-
mediaType
→ Future<
MediaType> -
Media type of the asset.
no setteroverride
- mediaTypeHint → String?
-
final
- name → String
-
Name of the asset, e.g. a filename.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createFetcher(
PublicationAssetDependencies dependencies, String? credentials) → Future< Try< Fetcher, OpeningException> > -
Creates a fetcher used to access the asset's content.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toTitle(
) → String -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited