SyncScan class

The file-first half of a sync, decided before any credential or network call: which catalog this run uploads and writes back to.

Constructors

SyncScan({required File file, required String path, bool perLocale = false, List<CatalogFile> catalogs = const []})
const

Properties

catalogs → List<CatalogFile>
The files of a catalogs: config, uploaded as one catalog.
final
file → File
The catalog itself, at path; the first of catalogs when there are several.
final
fileName → String
What the upload calls the file. The server keys its format sniffing on the name, never on the path it came from.
no setter
files → List<File>
Every file this run writes back to.
no setter
hashCode → int
The hash code for this object.
no setterinherited
path → String
Normalized and relative to the process, like every other path the CLI prints — the config's catalog: resolved against the config's directory.
final
perLocale → bool
True when path came from source:: the base-language file of a project that keeps one file per locale. Its write-back goes into output: and never onto path.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited