RouteDirectory class

A class containing metadata regarding a route directory.

Constructors

RouteDirectory({required String name, required String route, required List<MiddlewareFile> middleware, required List<RouteFile> files, required List<String> params})
A class containing metadata regarding a route directory.
const

Properties

files List<RouteFile>
A list of nested route files within the directory.
final
hashCode int
The hash code for this object.
no setterinherited
middleware List<MiddlewareFile>
List of middleware for the provided router.
final
name String
The alias for the current directory.
final
params List<String>
The dynamic route params associated with the directory.
final
route String
The route which will be used to mount routers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? name, String? route, List<MiddlewareFile>? middleware, List<RouteFile>? files, List<String>? params}) RouteDirectory
Create a copy of the current instance and override zero or more values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert the current instance to a Map<String, dynamic>.
toString() String
A string representation of this object.
inherited

Operators

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