ArbWriter class
Writes an ArbFile to canonical ARB JSON.
Canonical format, matching test/fixtures/canonical/dialect/source/en.arb byte-for-byte:
- 2-space indentation.
@@localeis always the first entry.- Entries are sorted by key, byte-wise lexicographic ordering (dot is ordinary text).
- Each
@keymetadata block appears immediately after its key, no blank line between them. - A blank line separates each (key, @key) group from the next.
- Metadata fields appear in this order if present: namespace, description, context, placeholders, locked, glossary_exempt, source_hash, then any extras in alphabetical order.
- Trailing newline.
Same input → same byte-identical output: that's the round-trip property
dialect check --fix relies on.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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