changed property

  1. @override
DateTime get changed
override

The time of the last change to the data or metadata of the file system object.

On Windows platforms, this is instead the file creation time.

Implementation

@override
DateTime get changed {
  if (_impl == null) {
    return _defaultDateTime;
  }

  if (_impl is MemoryFileImplementation) {
    return (_impl as MemoryFileImplementation).changed;
  }

  if (_impl is MapBasedFsDirectoryImplementation) {
    // TODO(ehesp): This probably isn't correct.
    return DateTime.now();
  }

  throw UnimplementedError();
}