Route.resource constructor
Route.resource(})
Implementation
factory Route.resource(
String name, {
required Resource resource,
List<Middleware> middlewares = const [],
}) {
return Route._(
name: name,
children: resource.routes,
middlewares: middlewares,
);
}