ArbMetadata class

Constructors

ArbMetadata({String? namespace, String? description, String? context, Map<String, ArbPlaceholder>? placeholders, bool locked = false, bool glossaryExempt = false, List<String> glossaryExemptTerms = const [], String? sourceHash, Map<String, Object?> extras = const {}})

Properties

context String?
Optional disambiguation hint (e.g. checkout_screen, shared).
final
description String?
Required by convention for source ARBs: what this string means in context.
final
extras Map<String, Object?>
Preserved-as-is for forward compatibility. Unknown @key.* fields land here so the writer can pass them through.
final
glossaryExempt bool
Blanket exemption: skip glossary enforcement for every term on this key ("glossary_exempt": true). Prefer glossaryExemptTerms — a blanket exemption also waives the terms the key should still honor, and it tells a reviewer nothing about what was waived.
final
glossaryExemptTerms List<String>
Term-scoped exemption: the glossary terms this key is excused from ("glossary_exempt": ["take", "sentence"]). Every other term still enforces.
final
hasGlossaryExemption bool
True when the key carries any exemption at all.
no setter
hashCode int
The hash code for this object.
no setterinherited
locked bool
Pinned by a human reviewer; dialect translate skips this key.
final
namespace String?
Required by convention for source ARBs: which logical group this key belongs to (e.g. checkout, common, settings). Drives the per-platform namespaces: filter on dialect sync. Absent on translation ARBs — the CLI strips metadata from translations.
final
placeholders Map<String, ArbPlaceholder>?
Placeholder declarations keyed by placeholder name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceHash String?
Hash of the canonical source string at lock-time. Powers dialect status "stale" detection (M6). Spec'd in dialect/spec/icu-json.md.
final

Methods

copyWith({String? namespace, String? description, String? context, Map<String, ArbPlaceholder>? placeholders, bool? locked, bool? glossaryExempt, List<String>? glossaryExemptTerms, Object? sourceHash = _sentinel, Map<String, Object?>? extras}) ArbMetadata
exemptFrom(String term) bool
Whether this key is excused from enforcing term — by a blanket exemption or by naming it. Term matching is case-insensitive, since the glossary's canonical lemma may be capitalized differently from the exemption a human typed.
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