WASIComponentWitVariant constructor

WASIComponentWitVariant({
  1. required String name,
  2. required List<WASIComponentWitVariantCase> cases,
  3. required WASIComponentWitSpan span,
  4. String? externalId,
})

Creates a WIT variant declaration boundary.

Implementation

WASIComponentWitVariant({
  required this.name,
  required List<WASIComponentWitVariantCase> cases,
  required this.span,
  this.externalId,
}) : cases = List<WASIComponentWitVariantCase>.unmodifiable(cases);