W3cubDocs

/Dart 2

setLastAccessed method

Future setLastAccessed (DateTime time)

Modifies the time the file was last accessed.

Returns a Future that completes once the operation has completed.

Throws a FileSystemException if the time cannot be set.

Implementation

Future setLastAccessed(DateTime time);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/File/setLastAccessed.html