RouteStaticDirectory class
Route for serving a directory of static files.
Constructors
- RouteStaticDirectory({required String serverDirectory, String? basePath})
- Creates a static directory with the serverDirectory as its root.
Properties
- basePath → String?
-
The path to the directory to serve static files from.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverDirectory → String
-
The path to the directory to serve relative to the web/ directory.
final
Methods
-
handleCall(
Session session, HttpRequest request) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited