target abstract method Null safety

Future<String> target()

Gets the target of the link.

Returns a future that completes with the path to the target.

If the returned target is a relative path, it is relative to the directory containing the link.

If the link does not exist, or is not a link, the future completes with a FileSystemException.

Implementation

Future<String> target();