getTopPatterns method

List<Pattern> getTopPatterns(
  1. int n
)

Returns the top n most confident patterns.

Implementation

List<Pattern> getTopPatterns(int n) => getAllPatterns().take(n).toList();