endsWith method

bool endsWith(
  1. Path other
)

Determines whether other is a suffix of this.

Implementation

bool endsWith(Path other) => isWindows
    ? WindowsPath(_string).endsWith(WindowsPath(other._string))
    : UnixPath(_string).endsWith(UnixPath(other._string));