metro/live/live_snapshot library

Classes

LiveSnapshot
A storage snapshot on Metro's side: what storage.export returns, what export --to writes in metro live, and the map an exported seeder holds.

Constants

snapshotFolders → const List<String>
Folders a bare name is looked for in, after where it was typed.

Functions

dartLiteral(Object? value, {String indent = '', String step = ' ', int width = 80, bool expand = false, int prefix = 0}) → String
value as a Dart literal that can sit in a const map.
findSnapshotFile(String source, {String root = '.'}) → File?
The snapshot file source names, or null when nothing matches.
seederNameFrom(String input) → String?
input as a seeder name (demo_user), or null when it can't be one.
snapshotNameFor(String path) → String
The seeder name for a snapshot file at path: snapshots/Pro-User.json becomes pro_user.