Data class final
Class representing data in a Cardano transaction output. The Data class is a type of Datum that contains actual data stored on-chain.
This is useful when you want to include data directly in the transaction output.
Constructors
- Data(CborValue data)
-
Constructor for the Data class, which requires CBOR-encoded data.
const
- Data.fromCbor(CborValue value)
-
Factory constructor to create a Data from a CBOR-encoded value.
factory
Properties
- data → CborValue
-
CBOR-encoded data associated with this Data object.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
Override of the
Equatableproperties for value comparison. This allows comparing Data instances based on their data values.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCbor(
) → CborValue -
The CBOR value represents the actual data.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited