FileFetcher class
Constructors
-
FileFetcher(Map<
String, FileSystemEntity> paths) - FileFetcher.single({required String href, required FileSystemEntity file})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
paths
→ Map<
String, FileSystemEntity> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes any opened file handles, removes temporary files, etc.
override
-
get(
Link link) → Resource -
Returns the Resource at the given
link
's HREF.override -
getWithHref(
String href) → Resource -
Returns the Resource at the given
href
.inherited -
guessTitle(
) → Future< String?> -
inherited
-
links(
) → Future< List< Link> > -
Known resources available in the medium, such as file paths on the file system
or entries in a ZIP archive. This list is not exhaustive, and additional
unknown resources might be reachable.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAsJsonOrNull(
String href) → Future< Map< String, dynamic> ?> -
Returns the resource data as a JSON object at the given
href
, or null.inherited -
readAsXmlOrNull(
String href) → Future< XmlDocument?> -
Returns the resource data as an XML Document at the given
href
, or null.inherited -
readBytes(
Link link) → Future< ByteData> -
Returns the resource data at the given Link's HREF, or throws a
Resource.Exception
inherited -
readBytesWithHref(
String href) → Future< ByteData> -
Returns the resource data at the given
href
, or throws aResource.Exception
inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited