specificity property

int get specificity

The number of literal tokens; more specific patterns win.

Implementation

int get specificity => tokens
    .where((token) =>
        token != EventAddress.singleWildcard &&
        token != EventAddress.tailWildcard)
    .length;