samePath function

bool samePath(
  1. String a,
  2. String b
)

Whether a and b name the same path on this system: ignoring case on Windows and macOS.

Implementation

bool samePath(String a, String b) => Platform.isWindows || Platform.isMacOS
    ? a.toLowerCase() == b.toLowerCase()
    : a == b;