PlatformConfig class

One platform's sync configuration. Read from platforms.<name> in dialect.yaml. v1.0 honors only format: arb; other formats are parsed and stored verbatim, so a future v1.1 adapter can pick them up without re-parsing.

Constructors

PlatformConfig({required String name, required String output, required String format, List<String> namespaces = const []})

Properties

format → String
Format adapter name. v1.0: arb. v1.1 adds apple-strings, android-xml, flat-json, icu-json. Unknown formats are not rejected here — the sync command surfaces them with a "this format lands in v1.1" hint.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
Platform key from the YAML map, e.g. flutter, ios, backend.
final
namespaces → List<String>
Namespace filter. Only keys whose prefix (before the first .) appears in this list are synced to this platform. Empty list = no filtering (every key syncs).
final
output → String
Output directory, relative to the project root. The sync command resolves it as path.join(project.root, output). Not relative to cwd — sync must work the same whether the user runs it from the repo root or dialect sync /path/to/proj.
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