canHandle method
Whether this handler can handle the given request
.
Implementation
bool canHandle(TranslateRequest request) => supportedLanguages.any(
(language) => language.toLowerCase() == request.to.toLowerCase(),
);
Whether this handler can handle the given request
.
bool canHandle(TranslateRequest request) => supportedLanguages.any(
(language) => language.toLowerCase() == request.to.toLowerCase(),
);