match method

  1. @override
List<List<SpatialMatch>> match(
  1. String password
)
override

Should return the matches for the password.

A synchronous matcher should return a list (usually of length 1) of lists of matches. An asynchronous matcher can return a list of futures that completes with a list of matches.

Implementation

@override
List<List<SpatialMatch>> match(String password) {
  final List<SpatialMatch> matches = <SpatialMatch>[];
  options.graph.forEach((String graphName, GraphEntry graph) {
    matches.addAll(_matchGraph(password, graph, graphName));
  });
  return <List<SpatialMatch>>[matches];
}