VariantGroup class

Eine Variantengruppe, wie getVariantGroup, listVariantGroups, die schreibenden Gruppenaufrufe und die Ereignisse variant_group.* sie senden. Die Artikel selbst traegt sie nicht: die liest listArticles(variantGroupId: …).

Constructors

VariantGroup({required String id, String? name, List<VariantAttribute> attributes = const [], VariantGroupDefaults defaults = const VariantGroupDefaults(), bool active = true, List<VariantGroupMember> variants = const [], String? createdAt, String? updatedAt})
const

Properties

active → bool
false = stillgelegt: alle Varianten stillgelegt, kein addVariant, endgueltig.
final
attributes → List<VariantAttribute>
1–3 Merkmale in der Reihenfolge der Gruppe (sie bestimmt den Standardnamen).
final
createdAt → String?
final
defaults → VariantGroupDefaults
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
name → String?
1–100 Zeichen; Standardname einer Variante: „<Gruppe> <Wert1> <Wert2>“.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt → String?
final
variants → List<VariantGroupMember>
Die aktiven Varianten einer aktiven Gruppe; eine einzeln stillgelegte Variante faellt heraus (ihre Kombination ist dann wieder frei). Beim Stilllegen der Gruppe wird die Liste eingefroren.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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