W3cubDocs

/Dart 2

lastAccessed method

Future<DateTime> lastAccessed ()

Get the last-accessed time of the file.

Returns a Future<DateTime> that completes with the date and time when the file was last accessed, if the information is available.

Throws a FileSystemException if the operation fails.

Implementation

Future<DateTime> lastAccessed();

© 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/lastAccessed.html