HeapType class sealed

A heap type from function references. When the proposal is disabled, Index is an invalid type.

Implementers

Constructors

HeapType.any()
const
factory
HeapType.array()
const
factory
HeapType.eq()
const
factory
HeapType.extern()
const
factory
HeapType.fromJson(Object? json_)
Returns a new instance from a JSON value. May throw if the value does not have the expected structure.
factory
HeapType.func()
const
factory
HeapType.i31()
const
factory
HeapType.indexed(int value)
const
factory
HeapType.noExtern()
const
factory
HeapType.noFunc()
const
factory
HeapType.none_()
const
factory
HeapType.struct()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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?>
Returns a JSON representation of this.
toString() String
A string representation of this object.
inherited
toWasm() → (int, Object?)
Returns this as a WASM canonical abi value.

Operators

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