lastModified_ method

FutureOr<DateTime?> lastModified_()

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

Implementation

FutureOr<DateTime?> lastModified_() async {
  final file = File(addPrefix(path));
  try {
    if (await file.exists_()) {
      return file.lastModified();
    }
  } catch (exception, stacktrace) {
    print(exception.toString());
    print(stacktrace.toString());
  }
  return null;
}