test method

bool test([
  1. PathFillRule rule = PathFillRule.nonZero
])

Implementation

bool test([PathFillRule rule = PathFillRule.nonZero]) {
  if (!_expectsMove) {
    close();
  }

  final int mask = (rule == PathFillRule.nonZero) ? -1 : 1;

  int nonzero = 0;

  for (final w in _windings) {
    nonzero |= w & mask;
  }
  return nonzero != 0;
}