setLastModified method

  1. @override
Future<void> setLastModified(
  1. DateTime time
)
override

Modifies the time the file was last modified.

Returns a Future that completes once the operation has completed.

Throws a FileSystemException if the time cannot be set.

Implementation

@override
Future<void> setLastModified(DateTime time) async {
  return _utimes(mtime: Date(time.millisecondsSinceEpoch));
}