isPattern static method

bool isPattern(
  1. Topic topic
)

Whether topic contains wildcard characters in its paths.

Implementation

static bool isPattern(Topic topic) =>
    topic.paths.any((path) => path.contains(single) || path.contains(tail));