isPathAbsolute function

bool isPathAbsolute(
  1. String path
)

Implementation

bool isPathAbsolute(String path) {
  final String p = path.replaceAll(r'\', '/');
  return p.startsWith('/') || (p.length >= 2 && p[1] == ':');
}