A string to be prepended to the beginning of every route this Router manages.
For example, if this Router's base path is "/api" and the route "/users" is added, the actual route will be "/api/users". Using this property will make route matching more efficient than including the base path in each route.
Source
String get basePath => "/${_basePathSegments.join("/")}";
Source
set basePath(String bp) { _basePathSegments = bp.split("/").where((str) => str.isNotEmpty).toList(); }