prefix static method

void prefix(
  1. String prefix
)

set prefix for the route, this will affect its below routes

Route.prefix('blog');

Implementation

static void prefix(String prefix) {
  Route()._prefix = '$prefix/';
}