head method

HashlineSnapshot? head(
  1. String path
)

Most-recently recorded version for path, or null if none.

Implementation

HashlineSnapshot? head(String path) {
  final history = _versions.get(path);
  return history == null || history.isEmpty ? null : history.first;
}