isFile static method
Implementation
static bool isFile(String? path) {
if (path == null || path.trim().isEmpty) return false;
return path.startsWith('/') ||
path.startsWith('file://') ||
path.contains('/storage/') ||
path.contains(r'\');
}