fileAt method

String? fileAt(
  1. String slug,
  2. String path, {
  3. String branch = 'main',
})

The text at path on branch, or null. Only valid for the textual serializations — a KDBX container is not UTF-8 and must be read with bytesAt.

Implementation

String? fileAt(String slug, String path, {String branch = 'main'}) {
  final bytes = bytesAt(slug, path, branch: branch);
  return bytes == null ? null : utf8.decode(bytes);
}