bound<T> method
the value Route.bind made for the route param param.
User user = req.bound<User>('user');
Implementation
T bound<T>(String param) {
Object? value = boundValues[param];
if (value is T) return value;
throw StateError(
'No bound value of type $T for the route param "$param". '
'Add Route.bind<$T>(\'$param\', ...) and a {$param} in the route.',
);
}