WASIComponentWitVariant constructor
WASIComponentWitVariant({
- required String name,
- required List<
WASIComponentWitVariantCase> cases, - required WASIComponentWitSpan span,
- 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);