isPathThat function

Matcher isPathThat({
  1. Iterable<Offset> includes = const <Offset>[],
  2. Iterable<Offset> excludes = const <Offset>[],
})

Matches a Path that contains (as defined by Path.contains) the given includes points and does not contain the given excludes points.

Implementation

Matcher isPathThat({
  Iterable<Offset> includes = const <Offset>[],
  Iterable<Offset> excludes = const <Offset>[],
}) {
  return _PathMatcher(includes.toList(), excludes.toList());
}