lastModifiedSync_ method

DateTime? lastModifiedSync_()

Returns last modified timestamp of the File. Returns null if the File does not exist.

Implementation

DateTime? lastModifiedSync_() {
  final file = File(addPrefix(path));
  try {
    if (file.existsSync_()) {
      return file.lastModifiedSync();
    }
  } catch (exception, stacktrace) {
    print(exception.toString());
    print(stacktrace.toString());
  }
  return null;
}