Returns route with value attached under this capability.
route
value
AppRoute<P, S, D> attach<P, S, D>(AppRoute<P, S, D> route, T value) => route._withCapability<T>(this, value);