getPath method
Gets the string path represented by the specified generic path.
path may be a io.FileSystemEntity, a String, or a Uri.
Implementation
@override
String getPath(dynamic path) {
if (path is Uri) {
return path.toFilePath(windows: false);
} else if (path is FileSystemEntity) {
return path.path;
} else if (path is String) {
return path;
}
throw ArgumentError('Invalid path type: ${path.runtimeType}');
}