isClosedBy method

  1. @override
bool isClosedBy(
  1. num toleranceHoriz
)
override

True if the first and last point equals in 2D within toleranceHoriz.

Implementation

@override
bool isClosedBy(num toleranceHoriz) =>
    length >= 2 && first.equals2D(last, toleranceHoriz: toleranceHoriz);