isRelative method Null safety

bool isRelative(
  1. String path
)

Returns true if path is a relative path and false if it is absolute. On POSIX systems, absolute paths start with a / (forward slash). On Windows, an absolute path starts with \\, or a drive letter followed by :/ or :\.

Implementation

bool isRelative(String path) => !isAbsolute(path);