FileContainer class

Container providing ad-hoc access to standalone files (eg. single video file).

Inheritance

Constructors

FileContainer(String identifier, Map<String, String> files)

Properties

files Map<String, String>
Maps between container relative paths, and the matching absolute path to serve.
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
Unique identifier representing the served contents.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

existsAt(String path) Future<bool>
Returns whether there is contents at the given relative path.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resourceLength(String path) Future<int>
override
streamAt(String path) Future<DataStream>
Returns the data stream for the contents at the given relative path.
override
toString() String
A string representation of this object.
inherited

Operators

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