ArbMetadata class

Constructors

ArbMetadata({String? namespace, String? description, String? context, Map<String, ArbPlaceholder>? placeholders, bool locked = false, bool glossaryExempt = false, 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
Skip the glossary-enforcement check on this key. Use when the source string uses a glossary term in a non-literal sense.
final
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, Object? sourceHash = _sentinel, Map<String, Object?>? extras}) ArbMetadata
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