optional method
Conditionally runs optional middleware or skips middleware
Implementation
void optional(condition, Middleware<T> optionalMiddleware) {
use(getOptionalMiddleware(condition, optionalMiddleware));
}
Conditionally runs optional middleware or skips middleware
void optional(condition, Middleware<T> optionalMiddleware) {
use(getOptionalMiddleware(condition, optionalMiddleware));
}