Библиотеки » Ввод-вывод (dart:io) » Path » relativeTo
функция Path::relativeTo
Синтаксис
Path
Path.relativeTo
(Path base)
Передаваемые параметры
Path baseВозвращаемое значение
PathОписание
/** * Returns a pathrelative
such that * base.join(relative) == this.canonicalize()
. * Throws an exception if such a path is impossible. * For example, if [base] is '../../a/b' and [this] is '.'. * The computation is independent of the file system and current directory. */