WebRoute constructor
WebRoute({
- required String path,
- required WebRequest rq,
- List<
String> extraPath = const [], - List<
String> methods = const [RequestMethods.GET], - WaController? controller,
- String widget = "",
- Future<
String> index()?, - WaAuthController? auth,
- List<
WebRoute> children = const [], - Map<
String, Object?> params = const {}, - String title = '',
- List<
String> excludePaths = const [], - Future<
ApiDoc> ? apiDoc()?, - List<
String> permissions = const [], - List<
String> hosts = const ['*'], - List<
int> ports = const [],
Creates a WebRoute instance with the specified parameters.
path
and rq
are required parameters. All other parameters have default values.
Implementation
WebRoute({
required this.path,
required this.rq,
this.extraPath = const [],
this.methods = const [RequestMethods.GET],
this.controller,
this.widget = "",
this.index,
this.auth,
this.children = const [],
this.params = const {},
this.title = '',
this.excludePaths = const [],
this.apiDoc,
this.permissions = const [],
this.hosts = const ['*'],
this.ports = const [],
}) : super();