MemoryType class
- Implemented types
Constructors
- MemoryType({required bool memory64, required BigInt minimum, BigInt? maximum})
-
const
- MemoryType.fromJson(Object? json_)
-
Returns a new instance from a JSON value.
May throw if the value does not have the expected structure.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- maximum → BigInt?
-
Optional maximum size of this memory, in wasm pages.
final
- memory64 → bool
-
Whether or not this is a 64-bit memory, using i64 as an index. If this
is false it's a 32-bit memory using i32 as an index.
final
- minimum → BigInt
-
Initial size of this memory, in wasm pages.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
Whether or not this is a "shared" memory, indicating that it should be
send-able across threads and the
maximum
field is always present for valid types.final
Methods
-
copyWith(
{bool? memory64, BigInt? minimum, Option< BigInt> ? maximum}) → MemoryType - Returns a new instance by overriding the values passed as arguments
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
Returns a JSON representation of this.
override
-
toString(
) → String -
A string representation of this object.
override
-
toWasm(
) → List< Object?> -
Returns this as a WASM canonical abi value.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override