NativeScriptType class

Represents a native script type.

Mixed in types

Constructors

NativeScriptType.deserialize(CborIntValue cbor)
Deserializes a NativeScriptType from CBOR.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the native script type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value of the native script type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
toCbor() → CborObject
Converts the object to a CBOR object.
override
toJson() String
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromName(String? name) NativeScriptType
Returns the NativeScriptType corresponding to the provided value.
fromValue(int? value) NativeScriptType
Returns the NativeScriptType corresponding to the provided value.

Constants

scriptAll → const NativeScriptType
Native script type representing a script all.
scriptAny → const NativeScriptType
Native script type representing a script any.
scriptNOfK → const NativeScriptType
Native script type representing a script n-of-k.
scriptPubkey → const NativeScriptType
Native script type representing a script pubkey.
timelockExpiry → const NativeScriptType
Native script type representing a timelock expiry.
timelockStart → const NativeScriptType
Native script type representing a timelock start.
values → const List<NativeScriptType>
List of all native script types.