LocalizedList class final

A bulleted catalog list in every language the catalog publishes.

Deliberately a pair of lists rather than a list of LocalizedText: bullets are an editorial cut, not a translation unit. Three Portuguese bullets may be two in English when one distinction does not exist for that reader, and a per-bullet pairing would force the English list to keep the Portuguese list's shape. What the lists owe each other is coverage, not cardinality — so the gate checks that neither side is empty while the other is filled.

Constructors

LocalizedList({required List<String> en, required List<String> pt})
Creates a LocalizedList.
const
LocalizedList.empty()
Creates the empty list, used as the default for optional fields.
const

Properties

en List<String>
English bullets.
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether both languages are empty.
no setter
isNotEmpty bool
Whether either language carries a bullet.
no setter
pt List<String>
Brazilian Portuguese bullets.
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
toJson() Map<String, Object?>
Serializes to the format consumed by the site and the MCP server.
toString() String
A string representation of this object.
inherited

Operators

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