attachTo property Null safety

bool Function(String? uri, Method? method) attachTo

Indicates for which uris and methods the middleware should attach to

It is used only with if you are attempting to register this middleware in widespread mode.

Implementation

bool Function(String? uri, Method? method) get attachTo =>
    (uri, method) => false;