startsWith method

bool startsWith(
  1. Path other
)

Determines whether other is a prefix of this.

Implementation

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