WASIComponentWitInterface class final
Top-level WIT interface boundary.
Constructors
-
WASIComponentWitInterface({required String name, required List<
WASIComponentWitFunction> functions, required List<WASIComponentWitRecord> records, required List<WASIComponentWitVariant> variants, required List<WASIComponentWitFlags> flags, required List<WASIComponentWitEnum> enums, required List<WASIComponentWitResource> resources, required List<WASIComponentWitTypeAlias> typeAliases, required List<WASIComponentWitUse> uses, required WASIComponentWitSpan span}) - Creates an interface declaration boundary.
Properties
-
enums
→ List<
WASIComponentWitEnum> -
Enum declarations captured directly in this interface.
final
-
flags
→ List<
WASIComponentWitFlags> -
Flags declarations captured directly in this interface.
final
-
functions
→ List<
WASIComponentWitFunction> -
Function declarations captured directly in this interface.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Interface name.
final
-
records
→ List<
WASIComponentWitRecord> -
Record declarations captured directly in this interface.
final
-
resources
→ List<
WASIComponentWitResource> -
Resource declarations captured directly in this interface.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- span → WASIComponentWitSpan
-
Source span for the interface name.
final
-
typeAliases
→ List<
WASIComponentWitTypeAlias> -
Type aliases declared directly in this interface.
final
-
uses
→ List<
WASIComponentWitUse> -
usedeclarations captured directly in this interface.final -
variants
→ List<
WASIComponentWitVariant> -
Variant declarations captured directly in this interface.
final
Methods
-
enumNamed(
String name) → WASIComponentWitEnum? -
Returns the enum named
name, if this interface declares one. -
flagsNamed(
String name) → WASIComponentWitFlags? -
Returns the flags type named
name, if this interface declares one. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordNamed(
String name) → WASIComponentWitRecord? -
Returns the record named
name, if this interface declares one. -
resourceNamed(
String name) → WASIComponentWitResource? -
Returns the resource named
name, if this interface declares one. -
toString(
) → String -
A string representation of this object.
inherited
-
typeAliasNamed(
String name) → WASIComponentWitTypeAlias? -
Returns the type alias named
name, if this interface declares one. -
useItemNamed(
String name) → WASIComponentWitUseItem? -
Returns the used type item aliased as
name, if this interface has one. -
variantNamed(
String name) → WASIComponentWitVariant? -
Returns the variant named
name, if this interface declares one.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited