samePath function
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;