BadUseOfRouterWidgetException constructor
Constructor of this exception. It requires the route name and the RouteMode used.
Implementation
BadUseOfRouterWidgetException(this.routerName, this.mode) {
message =
'Cannot use $mode with #${routerName.toString().substring(8, routerName.toString().length - 2)}';
}